1215件ヒット
[1-100件を表示]
(0.162秒)
ライブラリ
- matrix (1215)
クラス
- Matrix (829)
-
Matrix
:: LUPDecomposition (48) - Vector (338)
キーワード
- * (48)
- ** (12)
- + (24)
- +@ (24)
- - (24)
- -@ (24)
-
/ (36) - == (24)
- [] (24)
- []= (21)
- adjugate (12)
-
angle
_ with (12) - antisymmetric? (7)
- coerce (12)
- cofactor (12)
-
cofactor
_ expansion (12) - collect (24)
- collect! (14)
- collect2 (24)
- column (24)
- combine (8)
- component (24)
- cross (12)
-
cross
_ product (12) - det (24)
- determinant (24)
- diagonal? (12)
- dot (12)
- each (24)
- each2 (24)
-
each
_ with _ index (24) - eigen (12)
- eigensystem (12)
- element (24)
- empty? (12)
-
entrywise
_ product (8) - eql? (24)
-
find
_ index (36) -
first
_ minor (12) -
hadamard
_ product (8) - hermitian? (12)
- hstack (12)
- independent? (12)
- index (36)
-
inner
_ product (12) -
laplace
_ expansion (12) - lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map (24)
- map! (14)
- map2 (12)
- minor (24)
- norm (12)
- normal? (12)
- normalize (12)
- orthogonal? (12)
- permutation? (12)
- r (12)
- rect (12)
- rectangular (12)
- regular? (12)
- round (12)
- row (24)
- singular? (24)
-
skew
_ symmetric? (7) - solve (12)
- symmetric? (12)
- tr (12)
- trace (12)
- unitary? (12)
- vstack (12)
検索結果
先頭5件
-
Matrix
# entrywise _ product(m) -> Matrix (26333.0) -
アダマール積(要素ごとの積)を返します。
...ダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}... -
Matrix
# -@ -> Matrix (26302.0) -
単項 -。各要素の符号を反転させた行列を返します。
単項 -。各要素の符号を反転させた行列を返します。 -
Matrix
# hadamard _ product(m) -> Matrix (26233.0) -
アダマール積(要素ごとの積)を返します。
...ダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}... -
Matrix
# antisymmetric? -> bool (26143.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
... 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
Mat......rix[[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
# skew _ symmetric? -> bool (26143.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
... 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
Mat......rix[[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
# tr -> Integer | Float | Rational | Complex (26119.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# trace -> Integer | Float | Rational | Complex (26119.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# symmetric? -> bool (26107.0) -
行列が対称ならば true を返します。
...行列が対称ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# +@ -> self (26101.0) -
単項 +。self を返します。
単項 +。self を返します。 -
Matrix
# lup _ decomposition -> Matrix :: LUPDecomposition (23333.0) -
行列の 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...