Expand description
Data serialization utilities
Provides functionality for serializing and deserializing scientific data:
- Binary, JSON, and MessagePack serialization formats
- Array serialization with metadata
- Structured data serialization
- Sparse matrix serialization Data serialization utilities
This module provides functionality for serializing and deserializing scientific data structures including arrays, matrices, and structured data.
Features:
- Binary serialization of ndarray arrays
- JSON serialization for structured data
- Enhanced sparse matrix serialization with multiple formats (COO, CSR, CSC)
- Matrix Market format integration
- Compression support for sparse matrices
- Memory-efficient sparse matrix operations
Modules§
- sparse_
ops - Sparse matrix operations utilities
Structs§
- Array
Metadata - Array metadata for serialization
- Serialized
Array - Serialized array data with metadata
- Sparse
Matrix - Enhanced sparse matrix with multiple format support
- Sparse
MatrixCOO - Type representing a sparse matrix in COO (Coordinate) format
- Sparse
MatrixCSC - Compressed Sparse Column (CSC) format
- Sparse
MatrixCSR - Compressed Sparse Row (CSR) format
Enums§
- Serialization
Format - Format for data serialization
- Sparse
Format - Sparse matrix format enumeration
Functions§
- deserialize_
array - Deserialize an ndarray from a file
- deserialize_
array_ with_ metadata - Deserialize an ndarray with metadata from a file
- deserialize_
enhanced_ sparse_ matrix - Enhanced sparse matrix deserialization
- deserialize_
sparse_ matrix - Deserialize a sparse matrix from a file
- deserialize_
struct - Deserialize a struct from a file
- from_
matrix_ market - Convert Matrix Market format to enhanced sparse matrix
- read_
array_ binary - Convenience function to read an array from binary format
- read_
array_ json - Convenience function to read an array from JSON format
- read_
array_ messagepack - Convenience function to read an array from MessagePack format
- serialize_
array - Serialize an ndarray to a file
- serialize_
array_ with_ metadata - Serialize an ndarray with metadata
- serialize_
enhanced_ sparse_ matrix - Enhanced sparse matrix serialization with format conversion
- serialize_
sparse_ matrix - Serialize a sparse matrix to a file
- serialize_
struct - Serialize a struct to a file
- to_
matrix_ market - Convert enhanced sparse matrix to Matrix Market format
- write_
array_ binary - Convenience function to write an array to binary format
- write_
array_ json - Convenience function to write an array to JSON format
- write_
array_ messagepack - Convenience function to write an array to MessagePack format