るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.053秒)
トップページ > クエリ:param[x] > 種類:インスタンスメソッド[x] > クエリ:ruby[x] > クエリ:-[x] > クラス:Matrix::LUPDecomposition[x]

別のキーワード

  1. net/imap param
  2. win32ole win32ole_param
  3. win32ole_param retval?
  4. win32ole_param output?
  5. win32ole_param input?

ライブラリ

検索結果

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

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

...す。

@param b 一次方程式の定数項を指定します。

//emlist[][ruby]{
require '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)]]
//}...