pub fn mat_from_array(values: Array) -> Result<Array, Box<EvalAltResult>>Expand description
Validate a nonempty rectangular numeric matrix, preserving INT and FLOAT values. The result is an ordinary Rhai array; later edits are validated by each operation.
assert_eq(mat([[1, 2.5], [3, 4]]), [[1, 2.5], [3, 4]]);