るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.112秒)

別のキーワード

  1. matrix find_index
  2. matrix index
  3. matrix each
  4. matrix map
  5. matrix collect

ライブラリ

クラス

キーワード

検索結果

Matrix#determinant -> Numeric (108409.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...

Matrix#determinant_e -> Rational | Float (72403.0)

このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。

このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。

Matrix#cofactor_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (63112.0)

row 行、もしくは column 列に関するラプラス展開をする。

row 行、もしくは column 列に関するラプラス展開をする。

通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。

変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には

//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]]....

Matrix#laplace_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (63112.0)

row 行、もしくは column 列に関するラプラス展開をする。

row 行、もしくは column 列に関するラプラス展開をする。

通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。

変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には

//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]]....

Matrix#det -> Numeric (63109.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...

絞り込み条件を変える

Matrix#det_e -> Rational | Float (63103.0)

このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。

このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。

Matrix::LUPDecomposition#determinant -> Numeric (54343.0)

元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。

元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。

@see Matrix#determinant

Matrix::LUPDecomposition#det -> Numeric (9043.0)

元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。

元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。

@see Matrix#determinant