るりまサーチ

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

別のキーワード

  1. matrix []
  2. matrix *
  3. matrix map
  4. matrix each
  5. matrix index

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Matrix::EigenvalueDecomposition#d -> Matrix (32305.0)

固有値を対角成分に並べた行列を返します。

固有値を対角成分に並べた行列を返します。

Matrix#entrywise_product(m) -> Matrix (29327.0)

アダマール積(要素ごとの積)を返します。

...ダマール積(要素ごとの積)を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。

//emlist[例][ruby]{
r
equire 'matrix'

Matrix
[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}...

Matrix#hadamard_product(m) -> Matrix (29327.0)

アダマール積(要素ごとの積)を返します。

...ダマール積(要素ごとの積)を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。

//emlist[例][ruby]{
r
equire 'matrix'

Matrix
[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}...

Matrix::EigenvalueDecomposition#eigenvector_matrix_inv -> Matrix (29310.0)

左固有ベクトルを縦に並べた行列を返します。

...左固有ベクトルを縦に並べた行列を返します。

これは Matrix::EigenvalueDecomposition#v の逆行列です...

Matrix::EigenvalueDecomposition#eigenvector_matrix -> Matrix (29304.0)

右固有ベクトルを横に並べた行列を返します。

右固有ベクトルを横に並べた行列を返します。

絞り込み条件を変える

Matrix#round(ndigits = 0) -> Matrix (29302.0)

行列の各要素を指定した桁数で丸めた行列を返します。

...行列の各要素を指定した桁数で丸めた行列を返します。

@see Float#round...

Matrix#determinant -> Numeric (29219.0)

行列式 (determinant) の値を返します。

...行列式 (determinant) の値を返します。

Float を使用すると、精度が不足するため、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討し...
...てください。

@raise ExceptionForMatrix::ErrDimensionMismatch 正方行列でない場合に発生します

//emlist[例][ruby]{
r
equire 'matrix'

p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
//}...

Matrix#determinant_e -> Rational | Float (29217.0)

このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。

...このメソッドは deprecated です。
Matrix
#determinant を代わりに使ってください。...

Vector#r -> Float (29108.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
r
equire 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize...
<< 1 2 3 ... > >>