Algosim documentation: BasisVector

BasisVector

Returns a standard basis vector in ℝⁿ.

Syntax

Description

If n is a positive integer and k a positive integer in [1, n] ∩ ℤ, then BasisVector(n, k) returns the kth standard basis vector in ℝⁿ.

Examples

BasisVector(3, 1)
 ⎛1⎞
e⎜0⎟
 ⎝0⎠