742件ヒット
[1-100件を表示]
(0.144秒)
ライブラリ
- matrix (742)
クラス
- Matrix (323)
-
Matrix
:: EigenvalueDecomposition (120) -
Matrix
:: LUPDecomposition (120) - Vector (179)
キーワード
- []= (14)
-
cofactor
_ expansion (12) - collect (48)
- collect! (28)
- collect2 (24)
- column (24)
-
column
_ vectors (12) - component (12)
- d (12)
- det (12)
- determinant (12)
- eigen (12)
- eigensystem (12)
-
eigenvalue
_ matrix (12) - eigenvalues (12)
-
eigenvector
_ matrix (12) -
eigenvector
_ matrix _ inv (12) - eigenvectors (12)
- element (12)
-
elements
_ to _ f (12) -
elements
_ to _ i (12) -
elements
_ to _ r (12) - empty? (12)
- independent? (12)
-
inner
_ product (12) -
laplace
_ expansion (12) - lup (12)
-
lup
_ decomposition (12) - map (48)
- map! (28)
- minor (24)
- permutation? (12)
- pivots (12)
- regular? (12)
- row (24)
- singular? (12)
- solve (12)
-
to
_ a (24) -
to
_ ary (24) - tr (12)
- trace (12)
- u (12)
-
upper
_ triangular? (12) - v (12)
-
v
_ inv (12)
検索結果
先頭5件
-
Matrix
:: LUPDecomposition # l -> Matrix (32203.0) -
LUP分解の下半行列部分を返します。
...LUP分解の下半行列部分を返します。... -
Matrix
:: LUPDecomposition # p -> Matrix (32203.0) -
LUP分解の置換行列部分を返します。
...LUP分解の置換行列部分を返します。... -
Matrix
# lup -> Matrix :: LUPDecomposition (29487.0) -
行列の LUP 分解を保持したオブジェクトを返します。
... LUP 分解を保持したオブジェクトを返します。
Matrix::LUPDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(下三角行列、上三角行列、置換行列)
を得ることができます。これを [L, U, P] と書くと、
L*U = P*self......します。
//emlist[例][ruby]{
require 'matrix'
a = Matrix[[1, 2], [3, 4]]
l, u, p = a.lup
l.lower_triangular? # => true
u.upper_triangular? # => true
p.permutation? # => true
l * u == p * a # => true
a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
//}
@see Matrix::LUPDecomposition... -
Matrix
# lup _ decomposition -> Matrix :: LUPDecomposition (29487.0) -
行列の LUP 分解を保持したオブジェクトを返します。
... LUP 分解を保持したオブジェクトを返します。
Matrix::LUPDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(下三角行列、上三角行列、置換行列)
を得ることができます。これを [L, U, P] と書くと、
L*U = P*self......します。
//emlist[例][ruby]{
require 'matrix'
a = Matrix[[1, 2], [3, 4]]
l, u, p = a.lup
l.lower_triangular? # => true
u.upper_triangular? # => true
p.permutation? # => true
l * u == p * a # => true
a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
//}
@see Matrix::LUPDecomposition... -
Matrix
# laplace _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (29331.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...olumn 列に関するラプラス展開をする。
通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/colu......る場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定し......た、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
Matrix
# upper _ triangular? -> bool (29201.0) -
行列が上三角行列ならば true を返します。
行列が上三角行列ならば true を返します。 -
Matrix
# collect(which = :all) {|x| . . . } -> Matrix (23357.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#each の項目......を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}
@see Matrix#each, Matrix#map!... -
Matrix
# map(which = :all) {|x| . . . } -> Matrix (23357.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#each の項目......を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}
@see Matrix#each, Matrix#map!... -
Matrix
:: EigenvalueDecomposition # eigenvalue _ matrix -> Matrix (23304.0) -
固有値を対角成分に並べた行列を返します。
固有値を対角成分に並べた行列を返します。 -
Matrix
# collect(which = :all) -> Enumerator (23257.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#each の項目......を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}
@see Matrix#each, Matrix#map!...