Algosim documentation: ComplexVector

ComplexVector

Converts an object to a complex vector.

Syntax

Description

If X is any object, then ComplexVector(X) returns X as a complex vector, if possible.

Specifically,

Examples

ComplexVector(IdentityMatrix(3))
(1, 0, 0, 0, 1, 0, 0, 0, 1)
ComplexVector("1, i, 0, −i, 0")
 ⎛1 ⎞
 ⎜i ⎟
e⎜0 ⎟
 ⎜−i⎟
 ⎝0 ⎠

See also