843件ヒット
[1-100件を表示]
(0.089秒)
ライブラリ
- matrix (843)
クラス
- Matrix (462)
-
Matrix
:: EigenvalueDecomposition (120) -
Matrix
:: LUPDecomposition (120) - Vector (141)
キーワード
- []= (7)
- adjugate (12)
- cofactor (12)
-
cofactor
_ expansion (12) - collect (24)
- collect! (14)
- collect2 (12)
- column (24)
-
column
_ count (12) -
column
_ size (12) -
column
_ vectors (12) - conjugate (12)
-
cross
_ product (12) - d (12)
- det (24)
- determinant (24)
- each (24)
- each2 (12)
-
each
_ with _ index (12) - eigen (12)
- eigensystem (12)
-
eigenvalue
_ matrix (12) - eigenvalues (12)
-
eigenvector
_ matrix (12) -
eigenvector
_ matrix _ inv (12) - eigenvectors (12)
-
entrywise
_ product (8) -
find
_ index (24) -
first
_ minor (12) -
hadamard
_ product (8) - index (24)
-
inner
_ product (12) - l (12)
-
laplace
_ expansion (12) -
lower
_ triangular? (12) - lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map (24)
- map! (14)
- norm (12)
- p (12)
- permutation? (12)
- pivots (12)
- r (12)
- rectangular (12)
- regular? (12)
- round (12)
-
row
_ count (12) -
row
_ size (12) - singular? (24)
- solve (12)
- square? (12)
-
to
_ a (24) -
to
_ ary (24) - unitary? (12)
-
upper
_ triangular? (12) - v (12)
-
v
_ inv (12)
検索結果
先頭5件
-
Matrix
:: LUPDecomposition # u -> Matrix (29203.0) -
LUP分解の上半行列部分を返します。
...LUP分解の上半行列部分を返します。... -
Matrix
# lup -> Matrix :: LUPDecomposition (23357.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
# lup _ decomposition -> Matrix :: LUPDecomposition (23357.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
# entrywise _ product(m) -> Matrix (23227.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
# hadamard _ product(m) -> Matrix (23227.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
# adjugate -> Matrix (23226.0) -
余因子行列を返します。
...余因子行列を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6],[3,9]].adjugate # => Matrix[[9, -6], [-3, 7]]
//}
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@see Matrix#cofactor... -
Matrix
# round(ndigits = 0) -> Matrix (23202.0) -
行列の各要素を指定した桁数で丸めた行列を返します。
...行列の各要素を指定した桁数で丸めた行列を返します。
@see Float#round... -
Matrix
# regular? -> bool (23125.0) -
行列が正方で正則なら true を、特異なら false を返します。
...正則なら true を、特異なら false を返します。
行列が正則であるとは、正方行列であり、かつ、その逆行列が存在することです。
行列式が0でないことと同値です。
正方行列でない場合には例外 ExceptionForMatrix::ErrDimensionMisma......h を
発生させます。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.regular? # => true
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, -3]
m = Matrix[a1, a2, a3]
p m.regular? # => false
a1 = [ 1, 2, 3]
a2 = [10,......15, 20]
a3 = [-1, -2, 1.5]
a4 = [1, 1, 1]
m = Matrix[a1, a2, a3, a4]
p m.regular? # => raise ExceptionForMatrix::ErrDimensionMismatch
//}
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# column(j) -> Vector | nil (23113.0) -
j 番目の列を Vector オブジェクトで返します。 j 番目の列が存在しない場合は nil を返します。 ブロックが与えられた場合はその列の各要素についてブロックを繰り返します。
...ックスと見倣します。末尾の列が -1 番目になります。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.column(1) # => Vector[2, 15, -2]
cnt = 0
m.column(-1) { |x|
cnt = cnt + x
}
p cnt # => 24.5
//}...