Algosim documentation: RealVector

RealVector

Converts an object to a real vector.

Syntax

Description

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

Specifically,

Examples

RealVector(IdentityMatrix(3))
(1, 0, 0, 0, 1, 0, 0, 0, 1)
RealVector(e^(π⋅i/3))
 ⎛     0.5      ⎞
e⎝0.866025403784⎠
RealVector("1, 0, 0")
 ⎛1⎞
e⎜0⎟
 ⎝0⎠
RealVector(date())
 ⎛2020⎞
e⎜ 9  ⎟
 ⎝ 5  ⎠

See also