るりまサーチ

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

別のキーワード

  1. matrix basis
  2. vector basis
  3. basis matrix
  4. basis vector

ライブラリ

クラス

検索結果

Vector.basis(size:, index:) -> Vector (18108.0)

size 次元ベクトル空間の index 番目の標準基底を返します。

...size 次元ベクトル空間の index 番目の標準基底を返します。

//emlist[例][ruby]{
require 'matrix'
Vector.basis(size: 3, index: 1) # => Vector[0, 1, 0]
//}

@param size ベクトルの次元
@param index 標準基底の何番目か。0 origin...