Wiki

Clone wiki

symja_android_library / Symbols / UnitVector

UnitVector

UnitVector(position)
returns a 2D unit vector with element 1 at the given position
UnitVector(dimension, position)
returns a unit vector with dimension dimension and an element 1 at the given position

See:

Examples

>>> UnitVector(4,3)
{0,0,1,0}

Updated