pub fn mat4_encode(
variables: &[(String, MatValue)],
) -> Result<Vec<u8>, ErrorsJSL>Expand description
Writes a level-4 MAT-file (SciPy’s savemat with format='4'), little-endian (see
mat4_encode_big_endian for the other byte order). Level 4 holds
two-dimensional arrays of doubles, singles, 32- and 16-bit integers and bytes, text, and sparse
matrices: other classes, logical arrays, cells, structures and arrays of more than two
dimensions are refused.