evecΒΆ
j-th unit vector (in row format)
param j: | Unit vector dimension |
---|---|
returns: | j-th unit vector |
rtype: | np.ndarray |
Examples
>>> evec(2)
np.array([0, 1])
>>> evec(3)
np.array([0, 0, 1])
j-th unit vector (in row format)
param j: | Unit vector dimension |
---|---|
returns: | j-th unit vector |
rtype: | np.ndarray |
Examples
>>> evec(2)
np.array([0, 1])
>>> evec(3)
np.array([0, 0, 1])