るりまサーチ

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

別のキーワード

  1. matrix solve
  2. lupdecomposition solve
  3. solve matrix
  4. solve vector

ライブラリ

モジュール

キーワード

検索結果

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

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

...指定します。

//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)]]
//}...

Rake::FileList#resolve -> self (6101.0)

追加リストと除外リストを評価します。

...する

IO.write("test.rb", "test")
IO.write("test.java", "test")
IO.write("test.js", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*.java")
file_list.exclude("*.js")
file_list.resolve # => ["test.rb", "test.java"]
end
//}...

Rake::TaskManager#resolve_args(args) -> Array (6101.0)

タスクやルールに与えられたパラメータを解釈します。

タスクやルールに与えられたパラメータを解釈します。

@param args パラメータを指定します。

@return [task_name, arg_name_list, prerequisites] を返します。

Matrix#lup -> Matrix::LUPDecomposition (7.0)

行列の LUP 分解を保持したオブジェクトを返します。

...します。

//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#lup_decomposition -> Matrix::LUPDecomposition (7.0)

行列の LUP 分解を保持したオブジェクトを返します。

...します。

//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...

絞り込み条件を変える