るりまサーチ

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

別のキーワード

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

キーワード

検索結果

<< < ... 4 5 6 >>

Matrix::LUPDecomposition#u -> Matrix (17204.0)

LUP分解の上半行列部分を返します。

LUP分解の上半行列部分を返します。

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

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

...ればなりません。

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

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

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

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

Matrix::LUPDecomposition#singular? -> bool (17009.0)

元の行列が正方で特異なら true を、正則なら false を返します。 LUP 分解の結果を利用して判定します。

...元の行列が正方で特異なら true を、正則なら false を返します。
LUP 分解の結果を利用して判定します。

@see Matrix#singular?...

Vector#norm -> Float (14109.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 (14109.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) (11114.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 >>