Skip to main content

to_array1

Function to_array1 

Source
pub fn to_array1(
    expr: &Expression,
    _values: &HashMap<String, f64>,
) -> SymEngineResult<Array1<Complex64>>
Expand description

Convert a symbolic vector expression to a numeric Array1<Complex64>.

The expression is expected to be in the format produced by from_array1, i.e. a column-vector matrix Matrix([[c1], [c2], ...]). Each row must contain exactly one cell.

The values map is accepted for API uniformity (see to_array2).

ยงErrors

Returns an error if the expression is not a matrix symbol or cell parsing fails.