種類
- インスタンスメソッド (1832)
- 特異メソッド (252)
- クラス (88)
クラス
- Matrix (1303)
-
Matrix
:: EigenvalueDecomposition (110) -
Matrix
:: LUPDecomposition (110) - Vector (561)
キーワード
- * (44)
- ** (11)
- + (22)
- +@ (22)
- - (22)
- -@ (22)
-
/ (33) - == (22)
- EigenvalueDecomposition (11)
- ErrDimensionMismatch (11)
- ErrNotRegular (11)
- ErrOperationNotDefined (11)
- I (11)
- LUPDecomposition (11)
- Matrix (11)
- Vector (11)
- ZeroVectorError (11)
- [] (44)
- []= (18)
- adjugate (11)
-
angle
_ with (11) - antisymmetric? (6)
- basis (11)
- build (22)
- clone (10)
- coerce (11)
- cofactor (11)
-
cofactor
_ expansion (11) - collect (44)
- collect! (24)
- collect2 (22)
- column (22)
-
column
_ count (11) -
column
_ size (11) -
column
_ vector (11) -
column
_ vectors (11) - columns (11)
- combine (21)
- component (22)
- conj (11)
- conjugate (11)
- covector (11)
- cross (11)
-
cross
_ product (11) - d (11)
- det (22)
-
det
_ e (11) - determinant (22)
-
determinant
_ e (11) - diagonal (11)
- diagonal? (11)
- dot (11)
- each (44)
- each2 (22)
-
each
_ with _ index (22) - eigen (11)
- eigensystem (11)
-
eigenvalue
_ matrix (11) - eigenvalues (11)
-
eigenvector
_ matrix (11) -
eigenvector
_ matrix _ inv (11) - eigenvectors (11)
- element (22)
- elements (11)
-
elements
_ to _ f (22) -
elements
_ to _ i (22) -
elements
_ to _ r (22) - empty (11)
- empty? (11)
-
entrywise
_ product (7) - eql? (22)
-
find
_ index (33) -
first
_ minor (11) -
hadamard
_ product (7) - hash (22)
- hermitian? (11)
- hstack (22)
- identity (11)
- imag (11)
- imaginary (11)
- independent? (22)
- index (33)
-
inner
_ product (11) - inspect (22)
- inv (11)
- inverse (11)
- l (11)
-
laplace
_ expansion (11) -
lower
_ triangular? (11) - lup (11)
-
lup
_ decomposition (11) - magnitude (11)
- map (44)
- map! (24)
- map2 (11)
- minor (22)
- norm (11)
- normal? (11)
- normalize (11)
- orthogonal? (11)
- p (11)
- permutation? (11)
- pivots (11)
- r (11)
- rank (11)
-
rank
_ e (11) - real (11)
- real? (11)
- rect (11)
- rectangular (11)
- regular? (11)
- round (11)
- row (22)
-
row
_ count (11) -
row
_ size (11) -
row
_ vector (11) -
row
_ vectors (11) - rows (11)
- scalar (11)
- singular? (22)
- size (11)
-
skew
_ symmetric? (6) - solve (11)
- square? (11)
- symmetric? (11)
- t (11)
-
to
_ a (44) -
to
_ ary (22) -
to
_ s (22) - tr (11)
- trace (11)
- transpose (11)
- u (11)
- unit (11)
- unitary? (11)
-
upper
_ triangular? (11) - v (11)
-
v
_ inv (11) - vstack (22)
- zero (29)
- zero? (18)
検索結果
先頭5件
-
Matrix
# -(m) -> Matrix (2.0) -
self から行列mを減算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。
...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。
@param m 減算する行列。減算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します... -
Matrix
# -@ -> Matrix (2.0) -
単項 -。各要素の符号を反転させた行列を返します。
単項 -。各要素の符号を反転させた行列を返します。 -
Matrix
# / (m) -> Matrix (2.0) -
self に行列 m の逆行列を右から乗じた行列を返します。
...@param m 逆行列を右から乗算する行列。可逆行列でselfと乗算可能な行列を指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します
@raise ExceptionForMatrix::ErrNotRegular m が正則でない場合に発生します... -
Matrix
# / (other) -> Matrix (2.0) -
self の各成分を数 other で割った行列を返します。
self の各成分を数 other で割った行列を返します。
@param other self の各成分を割る Numeric オブジェクトを指定します。 -
Matrix
# ==(other) -> bool (2.0) -
自分自身と other を比較し、同値であれば真(true)を返します。
自分自身と other を比較し、同値であれば真(true)を返します。
@param other 比較対象のオブジェクト -
Matrix
# [](i , j) -> () (2.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
# []=(row , col , v) (2.0) -
行が row、列が col である範囲を v に変更する。
...す。
v が Matrix のとき、変更の対象範囲と行数・列数が同じである必要があります。
v が上記以外のとき、変更の対象範囲の全ての要素を v に変更します。
//emlist[][ruby]{
require 'matrix'
m = Matrix[[0, 0], [0, 0]]
m[0, 1......1] = 9
p m # => Matrix[[0, 6], [0, 9]]
m = Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
m[0, 0..-1] = 5
m[1, 0..1] = Vector[2, 4]
m[2, 0..2] = Matrix[[3, 6, 9]]
p m #=> Matrix[[5, 5, 5], [2, 4, 0], [3, 6, 9]]
m = Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
m[0..2, 0..1] = 9
p m # => Matrix[[9, 9, 0], [9,......9, 0], [9, 9, 0]]
m[1..-1, 0..1] = Matrix[[1, 2], [3, 4]]
p m # => Matrix[[9, 9, 0], [1, 2, 0], [3, 4, 0]]
//}... -
Matrix
# adjugate -> Matrix (2.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 (2.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
...@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 (2.0) -
自分自身のコピーを返します。
自分自身のコピーを返します。 -
Matrix
# coerce(other) -> Array (2.0) -
他の数値オブジェクトとの変換を行います。
...クトをMatrix::Scalarのオブジェクトに変換し、selfとの組を配列として返します。
@param other 変換する数値オブジェクト
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [-1.25, 2.2]
m = Matrix[a1, a2]
r = Rational(1, 2)
p m.coerce(r) #=> [#<Matrix::Scalar:......0x832df18 @value=(1/2)>, Matrix[[1, 2], [-1.25, 2.2]]]
//}...