48件ヒット
[1-48件を表示]
(0.009秒)
ライブラリ
- ビルトイン (12)
-
bigdecimal
/ jacobian (12) -
bigdecimal
/ ludcmp (24)
検索結果
先頭4件
-
Kernel
. # throw(tag , value = nil) -> () (6101.0) -
Kernel.#catchとの組み合わせで大域脱出を行います。 throw は同じ tag を指定した catch のブロックの終わりまでジャンプします。
...Kernel.#catchとの組み合わせで大域脱出を行います。 throw
は同じ tag を指定した catch のブロックの終わりまでジャンプします。
throw は探索時に呼び出しスタックをさかのぼるので、
ジャンプ先は同じメソッド内にあるとは限......ます。
@raise ArgumentError 同じ tag で待っている catch が存在しない場合に発生します。
//emlist[例][ruby]{
def foo
throw :exit, 25
end
ret = catch(:exit) do
begin
foo
some_process() # 絶対に実行されない
10
ensure
puts "ensure"
end
end......ェクトです。
@param value catch の戻り値になります。
@raise UncaughtThrowError 同じ tag で待っている catch が存在しない場合に発生します。
//emlist[例][ruby]{
def foo
throw :exit, 25
end
ret = catch(:exit) do
begin
foo
some_process() # 絶対... -
Jacobian
. # jacobian(f , fx , x) -> [Numeric] (7.0) -
ヤコビ行列を計算します。
...ビ行列を求める点 x にあたるベクトルを数値の配列で指定します。
@return ヤコビ行列を返します。(各要素を Row-major order で 1 次元の配列
にしたオブジェクトを指定します)
@raise RuntimeError 計算結果が特異ヤコビ行列に... -
LUSolve
. # ludecomp(a , n , zero = 0 , one = 1) -> [Integer] (7.0) -
n 次正方行列を表す配列 a を破壊的に変更し、返り値と併せて元の行列の LU 分解を提供します。
...LUSolve.#lusolve の引数を構築するために使います。
@param a 行列を BigDecimal の配列で指定します。(各要素を
Row-major order で 1 次元の配列にしたオブジェクトを指定し
ます)
@param n 引数 a の次元を整数で指定しま... -
LUSolve
. # lusolve(a , b , ps , zero = 0 . 0) -> [BigDecimal] (7.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求めて返します。
...連立1次方程式 Ax = b の解 x を求めて返します。
@param a 行列を BigDecimal の配列で指定します。
各要素を Row-major order で並べて 1 次元の配列にし、
LUSolve.#ludecomp で変換したものを指定します。
@param b ベクトルを...