クラス
- Matrix (244)
-
Matrix
:: EigenvalueDecomposition (120) -
Matrix
:: LUPDecomposition (120) - Vector (91)
キーワード
- []= (7)
- adjugate (12)
-
cross
_ product (12) - det (24)
-
det
_ e (12) - determinant (24)
-
determinant
_ e (12) - diagonal? (12)
- dot (12)
-
each
_ with _ index (24) - eigen (12)
- eigensystem (12)
-
eigenvalue
_ matrix (12) - eigenvalues (12)
-
eigenvector
_ matrix (12) -
eigenvector
_ matrix _ inv (12) - eigenvectors (12)
-
entrywise
_ product (8) -
find
_ index (36) -
hadamard
_ product (8) - independent? (12)
- index (36)
-
inner
_ product (12) - l (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- norm (12)
- p (12)
- pivots (12)
- r (12)
- round (12)
- singular? (12)
- solve (12)
-
to
_ a (24) -
to
_ ary (24) - u (12)
- v (12)
-
v
_ inv (12)
検索結果
先頭5件
- Matrix
# find _ index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil - Matrix
# find _ index(value , selector = :all) -> [Integer , Integer] | nil - Matrix
# index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil - Matrix
# index(value , selector = :all) -> [Integer , Integer] | nil - Matrix
:: LUPDecomposition # det -> Numeric
-
Matrix
# find _ index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (26227.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
/....../}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# find _ index(value , selector = :all) -> [Integer , Integer] | nil (26227.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
/....../}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (26227.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
/....../}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# index(value , selector = :all) -> [Integer , Integer] | nil (26227.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
/....../}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
:: LUPDecomposition # det -> Numeric (26209.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Matrix
:: LUPDecomposition # determinant -> Numeric (26209.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Matrix
# diagonal? -> bool (26103.0) -
行列が対角行列ならば true を返します。
...行列が対角行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
:: EigenvalueDecomposition # eigenvalue _ matrix -> Matrix (23407.0) -
固有値を対角成分に並べた行列を返します。
固有値を対角成分に並べた行列を返します。 -
Matrix
# eigensystem -> Matrix :: EigenvalueDecomposition (23371.0) -
行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。
...。
Matrix::EigenvalueDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(右固有ベクトル、固有値行列、左固有ベクトル)
を得ることができます。
これを [V, D, W] と書くと、
(元の行列が対角化可能ならば)、
D......self == V*D*W, V = W.inverse を満たします。
D のそれぞれの対角成分が行列の固有値です。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
v, d, v_inv = m.eigensystem
d.diagonal? # => true
v.inv == v_inv # => true
(v * d * v_inv).round(5) == m # => true
//}......@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
@see Matrix::EigenvalueDecomposition...