Skip to main content

Canonic vector

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

Syntax

canonic_vector(Integer, Integer)

Description

Given two integers n and kk, returns the kk-th canonic vector of length nn.

linear_algebra.canonic_vector.calc.png