method

basis

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Vector
basis(size:, index:) public

Returns a standard basis n-vector, where k is the index.

Vector.basis(size:, index:) # => Vector[0, 1, 0]
Show source
Register or log in to add new notes.