るりまサーチ

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

別のキーワード

  1. matrix *
  2. matrix []
  3. matrix map
  4. matrix index
  5. matrix each

検索結果

<< < 1 2 3 4 5 ... > >>

Matrix#determinant -> Numeric (23118.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#det_e -> Rational | Float (23116.0)

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

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

Matrix#determinant_e -> Rational | Float (23116.0)

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

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

Matrix#diagonal? -> bool (23100.0)

行列が対角行列ならば true を返します。

...行列が対角行列ならば true を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します...

Matrix#lup_decomposition -> Matrix::LUPDecomposition (20326.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...

絞り込み条件を変える

Matrix::EigenvalueDecomposition#eigenvector_matrix_inv -> Matrix (20209.0)

左固有ベクトルを縦に並べた行列を返します。

...左固有ベクトルを縦に並べた行列を返します。

これは Matrix::EigenvalueDecomposition#v の逆行列です...

Vector#independent?(*vectors) -> bool (20206.0)

self とベクトルの列 vectors が線形独立であれば true を返します。

...self とベクトルの列 vectors が線形独立であれば true を返します。

require 'matrix'
Vector.independent?(self, *vectors)

と同じです。

@param vectors 線形独立性を判定するベクトル列...

Matrix.identity(n) -> Matrix (20203.0)

n次の単位行列を生成します。

n次の単位行列を生成します。

@param n 単位行列の次元

単位行列とは、対角要素が全て1で非対角要素が全て0であるような行列のことです。

Matrix::EigenvalueDecomposition#eigenvector_matrix -> Matrix (20203.0)

右固有ベクトルを横に並べた行列を返します。

右固有ベクトルを横に並べた行列を返します。
<< < 1 2 3 4 5 ... > >>