132件ヒット
[101-132件を表示]
(0.035秒)
別のキーワード
クラス
- Array (96)
- Enumerator (12)
- Matrix (24)
キーワード
- combination (24)
- lup (12)
-
lup
_ decomposition (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - size (12)
検索結果
先頭3件
-
Array
# repeated _ combination(n) -> Enumerator (14.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| result << e} # => [1,2,3]
result #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
//}
@see Array#repeated_permutation, Array#combi... -
Matrix
# lup -> Matrix :: LUPDecomposition (13.0) -
行列の LUP 分解を保持したオブジェクトを返します。
...できます。これを [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(... -
Matrix
# lup _ decomposition -> Matrix :: LUPDecomposition (13.0) -
行列の LUP 分解を保持したオブジェクトを返します。
...できます。これを [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(...