るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < ... 4 5 6 >>

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

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

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

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

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

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

Matrix::LUPDecomposition#pivots -> [Integer] (14001.0)

ピボッティングを表す配列を返します。

ピボッティングを表す配列を返します。

Vector#cross_product(*vs) -> Vector (11101.0)

self とベクトル vs とのクロス積を返します。

...2 個の
n次元ベクトルでなければなりません。

@param vs クロス積を取るベクトルの集合
@raise ExceptionForMatrix::ErrOperationNotDefined self の
次元が1以下であるときに発生します。
@raise ArgumentError vs のベクトルの個数が n-2 以外...

Vector#norm -> Float (11007.0)

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

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

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

@see Vector#normalize...

絞り込み条件を変える

Vector#r -> Float (11007.0)

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

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

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

@see Vector#normalize...

Vector#[]=(index, value) (8112.0)

index 番目の要素を value に変更します。

...index 番目の要素を value に変更します。

@param index インデックスを整数で指定します。
@param value 設定したい要素の値を指定します。
@raise TypeError ベクトルの範囲外にある整数を指定したときに、発生します。

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

v = Vector[0, 0, 0, 0, 0]

v[1] = 2
p v #=> Vector[0, 2, 0, 0, 0]

v[-1] = 3
p v #=> Vector[0, 2, 0, 0, 3]

v[99] = 100
# IndexError: given index 99 is outside of -5...5
//}...
<< < ... 4 5 6 >>