115件ヒット
[101-115件を表示]
(0.031秒)
種類
- インスタンスメソッド (91)
- 特異メソッド (24)
ライブラリ
- matrix (115)
キーワード
- []= (7)
- basis (12)
-
cross
_ product (12) - dot (12)
- independent? (24)
-
inner
_ product (12) - magnitude (12)
- norm (12)
- r (12)
検索結果
-
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
//}... -
Vector
. basis(size: , index:) -> Vector (8107.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...