539件ヒット
[1-100件を表示]
(0.149秒)
種類
- インスタンスメソッド (422)
- 特異メソッド (117)
ライブラリ
- matrix (539)
キーワード
- adjugate (11)
- build (22)
- cofactor (11)
-
cofactor
_ expansion (11) - collect (11)
- collect! (6)
- column (22)
-
column
_ count (11) -
column
_ size (11) -
column
_ vector (11) -
column
_ vectors (11) - columns (11)
- combine (7)
- conjugate (11)
- det (11)
- determinant (11)
- diagonal (11)
- each (11)
-
each
_ with _ index (11) - eigen (11)
- eigensystem (11)
- empty (11)
-
entrywise
_ product (7) -
find
_ index (22) -
first
_ minor (11) -
hadamard
_ product (7) - index (22)
-
laplace
_ expansion (11) -
lower
_ triangular? (11) - lup (11)
-
lup
_ decomposition (11) - map (11)
- map! (6)
- permutation? (11)
- rectangular (11)
- regular? (11)
- round (11)
-
row
_ count (11) -
row
_ size (11) - rows (11)
- scalar (11)
- singular? (11)
- square? (11)
- unit (11)
- unitary? (11)
-
upper
_ triangular? (11) - zero (11)
検索結果
先頭5件
-
Matrix
# lup _ decomposition -> Matrix :: LUPDecomposition (12431.0) -
行列の LUP 分解を保持したオブジェクトを返します。
...の LUP 分解を保持したオブジェクトを返します。
Matrix::LUPDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(下三角行列、上三角行列、置換行列)
を得ることができます。これを [L, U, P] と書くと、
L*U = P*s......します。
//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
# column _ size -> Integer (12201.0) -
行列の列数を返します。
行列の列数を返します。 -
Matrix
# entrywise _ product(m) -> Matrix (12201.0) -
アダマール積(要素ごとの積)を返します。
...ダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}... -
Matrix
# lower _ triangular? -> bool (12201.0) -
行列が下三角行列ならば true を返します。
...行列が下三角行列ならば true を返します。... -
Matrix
# permutation? -> bool (12201.0) -
行列が置換行列ならば true を返します。
...行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# singular? -> bool (12201.0) -
行列が正方で特異なら true を、正則なら false を返します。
...ue を、正則なら false を返します。
行列が特異(singular)であるとは、正則でないことです。
行列式が0であること同値です。
正方行列でない場合には例外 ExceptionForMatrix::ErrDimensionMismatch を
発生させます。
@raise ExceptionForMatrix......::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# unitary? -> bool (12201.0) -
行列がユニタリならば true を返します。
...行列がユニタリならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# upper _ triangular? -> bool (12201.0) -
行列が上三角行列ならば true を返します。
...行列が上三角行列ならば true を返します。... -
Matrix
. build(row _ size , column _ size = row _ size) -> Enumerable (12201.0) -
row_size×column_sizeの行列をブロックの返り値から生成します。
...w_size×column_sizeの行列をブロックの返り値から生成します。
行列の各要素の位置がブロックに渡され、それの返り値が行列の要素となります。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'......m = Matrix.build(2, 4) {|row, col| col - row }
# => Matrix[[0, 1, 2, 3], [-1, 0, 1, 2]]
m = Matrix.build(3) { rand }
# => a 3x3 matrix with random elements
//}
@param row_size 行列の行数
@param column_size 行列の列数... -
Matrix
. build(row _ size , column _ size = row _ size) {|row , col| . . . } -> Matrix (12201.0) -
row_size×column_sizeの行列をブロックの返り値から生成します。
...w_size×column_sizeの行列をブロックの返り値から生成します。
行列の各要素の位置がブロックに渡され、それの返り値が行列の要素となります。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'......m = Matrix.build(2, 4) {|row, col| col - row }
# => Matrix[[0, 1, 2, 3], [-1, 0, 1, 2]]
m = Matrix.build(3) { rand }
# => a 3x3 matrix with random elements
//}
@param row_size 行列の行数
@param column_size 行列の列数...