powered by
Auxiliary function to generate standard basis vectors.
genej(pos, length)
The position of the non-zero entry/dimension the basis vector corresponds to
Number of dimensions in total/length of vector.
Vector containing 1 in a single position, and 0 elsewhere.