Skip to main content

to_array2

Function to_array2 

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

Convert a symbolic matrix expression to a numeric Array2<Complex64>.

The expression is expected to be in the format produced by from_array2, i.e. Matrix([[cell, cell, ...], [cell, ...], ...]).

The values map is accepted for API uniformity but the matrix representation already contains fully evaluated numeric cells; symbolic cells are not currently supported.

ยงErrors

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