pub fn serialize_array1<S>(
array: &Array1<f64>,
serializer: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,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 serializeserializer- The serde serializer to use
§Returns
Result<S::Ok, S::Error>- Serialization result Serialize a 1D array to a serde-compatible format
This function converts an Array1
§Arguments
array- The 1D array to serializeserializer- The serde serializer to use
§Returns
Result<S::Ok, S::Error>- Serialization result