Function deserialize_array2

Source
pub fn deserialize_array2<'de, D>(
    deserializer: D,
) -> Result<Array2<f64>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserialize a 2D array from a serde-compatible format

Reconstructs an Array2 from the flattened format created by serialize_array2. The first two elements are interpreted as the shape (rows, cols), and the remaining elements are reshaped into the 2D array.

§Arguments

  • deserializer - The serde deserializer to use

§Returns

  • Result<Array2<f64>, D::Error> - Deserialized 2D array