るりまサーチ

最速Rubyリファレンスマニュアル検索!
1426件ヒット [101-200件を表示] (0.072秒)

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Matrix#index(value, selector = :all) -> [Integer, Integer] | nil (9103.0)

指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。

...指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。

複数の位置で値が一致する/ブロック...
...数の意味は
Matrix
#each を参照してください。

//emlist[例][ruby]{
require 'matrix'
Matrix
[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix
[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}

value を指定せず、さらにブロックを省略した場合、
Enumerator を返...

Matrix::EigenvalueDecomposition#eigenvalues -> [Float] (9103.0)

固有値を配列で返します。

固有値を配列で返します。

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

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

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

Matrix::EigenvalueDecomposition#eigenvectors -> [Vector] (9103.0)

右固有ベクトルを配列で返します。

右固有ベクトルを配列で返します。

Matrix#eigen -> Matrix::EigenvalueDecomposition (6203.0)

行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

...行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

Matrix
::EigenvalueDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(右固有ベクトル、固有値行列、左固有ベクトル)
を得ることがで...
...W.inverse を満たします。
D のそれぞれの対角成分が行列の固有値です。

//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
v, d, v_inv = m.eigensystem
d.diagonal? # => true
v.inv == v_inv # => true
(v * d * v_inv).round(5) == m # => true
//}

@raise ExceptionFor...
...Matrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
@see Matrix::EigenvalueDecomposition...

絞り込み条件を変える

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

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

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

@see Float#round...

Matrix#row_count -> Integer (6203.0)

行列の行数を返します。

行列の行数を返します。

Matrix#antisymmetric? -> bool (6103.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

...onForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します

//emlist[][ruby]{
require 'matrix'

Matrix
[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix
.empty.antisymmetric? # => true

Matrix
[[1, 2, 3], [4, 5, 6], [7, 8, 9]].ant...
...isymmetric? # => false
# 対角要素が違う
Matrix
[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix
[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#clone -> Matrix (6103.0)

自分自身のコピーを返します。

自分自身のコピーを返します。

Matrix#cofactor_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (6103.0)

row 行、もしくは column 列に関するラプラス展開をする。

...mn 列に関するラプラス展開をする。

通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。

変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column...
...//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix
[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}

@param row 行
@param column
@raise ArgumentError row と column を両方指定した、もしく...
...は両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>