るりまサーチ (Ruby 2.4.0)

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

別のキーワード

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

ライブラリ

クラス

検索結果

Vector.basis(size:, index:) -> Vector (54325.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