クラス
- Matrix (753)
-
Matrix
:: EigenvalueDecomposition (80) -
Matrix
:: LUPDecomposition (80) - Vector (342)
キーワード
- * (32)
- ** (8)
- + (16)
- +@ (14)
- - (16)
- -@ (14)
-
/ (24) - == (16)
- [] (16)
- adjugate (7)
-
angle
_ with (7) - antisymmetric? (3)
- clone (16)
- coerce (8)
- cofactor (7)
-
cofactor
_ expansion (7) - collect (24)
- collect2 (16)
- column (16)
-
column
_ count (8) -
column
_ size (8) -
column
_ vectors (8) - combine (4)
- component (16)
- conj (8)
- conjugate (8)
- covector (8)
- cross (7)
-
cross
_ product (8) - d (8)
- det (16)
-
det
_ e (8) - determinant (16)
-
determinant
_ e (8) - diagonal? (8)
- dot (7)
- each (32)
- each2 (16)
-
each
_ with _ index (16) - eigen (8)
- eigensystem (8)
-
eigenvalue
_ matrix (8) - eigenvalues (8)
-
eigenvector
_ matrix (8) -
eigenvector
_ matrix _ inv (8) - eigenvectors (8)
- element (16)
-
elements
_ to _ f (16) -
elements
_ to _ i (16) -
elements
_ to _ r (16) - empty? (8)
-
entrywise
_ product (4) - eql? (16)
-
find
_ index (24) -
first
_ minor (7) -
hadamard
_ product (4) - hash (16)
- hermitian? (8)
- hstack (7)
- imag (8)
- imaginary (8)
- independent? (7)
- index (24)
-
inner
_ product (8) - inspect (16)
- inv (8)
- inverse (8)
- l (8)
-
laplace
_ expansion (7) -
lower
_ triangular? (8) - lup (8)
-
lup
_ decomposition (8) - magnitude (8)
- map (24)
- map2 (8)
- minor (16)
- norm (8)
- normal? (8)
- normalize (8)
- orthogonal? (8)
- p (8)
- permutation? (8)
- pivots (8)
- r (8)
- rank (8)
-
rank
_ e (8) - real (8)
- real? (8)
- rect (8)
- rectangular (8)
- regular? (8)
- round (8)
- row (16)
-
row
_ count (8) -
row
_ size (8) -
row
_ vectors (8) - singular? (16)
- size (8)
-
skew
_ symmetric? (3) - solve (8)
- square? (8)
- symmetric? (8)
- t (8)
-
to
_ a (32) -
to
_ ary (16) -
to
_ s (16) - tr (8)
- trace (8)
- transpose (8)
- u (8)
- unitary? (8)
-
upper
_ triangular? (8) - v (8)
-
v
_ inv (8) - vstack (7)
- zero? (12)
検索結果
先頭5件
-
Matrix
# *(m) -> Matrix | Vector (3.0) -
self に行列またはベクトル m を右から乗じた行列を返します。
...を返します。
m が Vector オブジェクトなら返り値も Vector オブジェクトになります。
@param m 右からの乗算が定義可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します... -
Matrix
# *(other) -> Matrix (3.0) -
self の各成分に数 other を掛けた行列を返します。
self の各成分に数 other を掛けた行列を返します。
@param other self の各成分に掛ける Numeric オブジェクトを指定します。 -
Matrix
# **(n) -> Matrix (3.0) -
self の n 乗を返します。
...self の n 乗を返します。
@param n べき数の指定
@raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します... -
Matrix
# +(m) -> Matrix (3.0) -
self に行列 m を加算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。
...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。
@param m 加算する行列。加算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します... -
Matrix
# +@ -> self (3.0) -
単項 +。self を返します。
単項 +。self を返します。 -
Matrix
# -(m) -> Matrix (3.0) -
self から行列mを減算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。
...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。
@param m 減算する行列。減算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します... -
Matrix
# -@ -> Matrix (3.0) -
単項 -。各要素の符号を反転させた行列を返します。
単項 -。各要素の符号を反転させた行列を返します。 -
Matrix
# / (m) -> Matrix (3.0) -
self に行列 m の逆行列を右から乗じた行列を返します。
...@param m 逆行列を右から乗算する行列。可逆行列でselfと乗算可能な行列を指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します
@raise ExceptionForMatrix::ErrNotRegular m が正則でない場合に発生します... -
Matrix
# / (other) -> Matrix (3.0) -
self の各成分を数 other で割った行列を返します。
self の各成分を数 other で割った行列を返します。
@param other self の各成分を割る Numeric オブジェクトを指定します。 -
Matrix
# ==(other) -> bool (3.0) -
自分自身と other を比較し、同値であれば真(true)を返します。
自分自身と other を比較し、同値であれば真(true)を返します。
@param other 比較対象のオブジェクト -
Matrix
# [](i , j) -> () (3.0) -
(i,j)要素を返します。 行列の範囲外の値を指定した場合には nil を返します。
...分を0オリジンで指定します。
@param j 要素の列成分を0オリジンで指定します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, 2, 1.5]
m = Matrix[a1, a2, a3]
p m[0, 0] # => 1
p m[1, 1] # => 15
p m[1, 2] # => 20
p m[1, 3] # => nil
//}... -
Matrix
# adjugate -> Matrix (3.0) -
余因子行列を返します。
...子行列を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6],[3,9]].adjugate # => Matrix[[9, -6], [-3, 7]]
//}
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@see Matrix#cofactor... -
Matrix
# antisymmetric? -> bool (3.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば真を返します。
...@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
//emlist[][ruby]{
require 'matrix'
Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true
Matrix[[1, 2, 3], [4, 5, 6]......, [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}... -
Matrix
# clone -> Matrix (3.0) -
自分自身のコピーを返します。
自分自身のコピーを返します。