132件ヒット
[1-100件を表示]
(0.014秒)
種類
- インスタンスメソッド (96)
- クラス (36)
クラス
- Matrix (60)
-
Matrix
:: LUPDecomposition (12) - Vector (24)
キーワード
- ErrDimensionMismatch (12)
- ErrNotRegular (12)
- ErrOperationNotDefined (12)
- determinant (24)
-
determinant
_ e (12) - hermitian? (12)
- norm (12)
- normal? (12)
- normalize (12)
- permutation? (12)
検索結果
先頭5件
-
Matrix
# hermitian? -> bool (6102.0) -
行列がエルミートならば true を返します。
...行列がエルミートならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# normal? -> bool (6102.0) -
行列が正規行列ならば true を返します。
...行列が正規行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# permutation? -> bool (6102.0) -
行列が置換行列ならば true を返します。
...行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Vector
# normalize -> Vector (6102.0) -
自身を Vector#norm で正規化したベクトルを返します。
...ector#norm で正規化したベクトルを返します。
@raise Vector::ZeroVectorError ベクトルが0である場合に発生します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 6, 9].normalize
# => Vector[0.18181818181818182, 0.5454545454545454, 0.8181818181818182]
v.norm # => 1.......0
//}
@see Vector#norm... -
Matrix
# determinant -> Numeric (3102.0) -
行列式 (determinant) の値を返します。
...行列式 (determinant) の値を返します。
Float を使用すると、精度が不足するため、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討し......てください。
@raise ExceptionForMatrix::ErrDimensionMismatch 正方行列でない場合に発生します
//emlist[例][ruby]{
require 'matrix'
p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
//}... -
Matrix
# determinant _ e -> Rational | Float (3102.0) -
このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。
...このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。... -
Matrix
:: LUPDecomposition # determinant -> Numeric (3102.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Vector
# norm -> Float (3102.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
ExceptionForMatrix
:: ErrDimensionMismatch (3002.0) -
行列/ベクトル計算時に次元が合わない場合に発生する例外です。
行列/ベクトル計算時に次元が合わない場合に発生する例外です。