Canonic vector

The k-th canonic vector is the vector with all the inputs equal to zero, except for the kLaTeXk-th component that equals one.

Syntax

canonic_vector(Integer, Integer)

Description

Given two integers n and kLaTeXk, returns the kLaTeXk-th canonic vector of length nLaTeXn.

linear_algebra.canonic_vector.calc.png