るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.207秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:a[x] > クエリ:to[x] > クラス:Matrix::LUPDecomposition[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. bigdecimal to_r
  5. fileutils cp_r

ライブラリ

キーワード

検索結果

Matrix::LUPDecomposition#to_ary -> [Matrix, Matrix, Matrix] (18404.0)

分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。

分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。

Matrix::LUPDecomposition#to_a -> [Matrix, Matrix, Matrix] (15604.0)

分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。

分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。

Matrix::LUPDecomposition#solve(b) -> Vector | Matrix (6429.0)

self が正方行列 A の LUP 分解の時、一次方程式 Ax = b の解を返します。 b には Vector, Matrix, 数値の配列を指定出来ます。

...self が正方行列 A の LUP 分解の時、一次方程式 Ax = b の解を返します。
b には Vector, Matrix, 数値の配列を指定出来ます。

それぞれベクトルのサイズ、行列の行数、配列のサイズが A の列数と一致していなければなりません。...
...@param b 一次方程式の定数項を指定します。

//emlist[][ruby]{
r
equire 'matrix'

lup = Matrix[[2, 1], [1, 2]].lup

lup.solve([1, -1]) #=> Vector[(1/1), (-1/1)]
lup.solve(Vector[3, 0]) #=> Vector[(2/1), (-1/1)]
lup.solve(Matrix[[1, 3], [-1, 0]]) #=> Matrix...
...[[(1/1), (2/1)], [(-1/1), (-1/1)]]
//}...