The UnitVector(i, d) command returns a d-dimensional Vector in which the ith entry is one and all other entries are zero.

•

The UnitVector[row](i, d) command behaves like UnitVector(i, d) except that a row Vector is returned. If the orientation option is omitted or if UnitVector[column](i, d) is used, a column Vector is returned.