Function serialize_array1
Source pub fn serialize_array1<S>(
array: &Array1<f64>,
serializer: S,
) -> Result<S::Ok, S::Error>
Expand description
Serialize a 1D array to a format compatible with serde
Simply converts the Array1 to a Vec for JSON serialization.
§Arguments
array
- The 1D array to serialize
serializer
- The serde serializer to use
§Returns
Result<S::Ok, S::Error>
- Serialization result