![]() |
Blaze
3.6
|
The serialization of matrices works in the same manner as the serialization of vectors. The following example demonstrates the (de-)serialization of dense and sparse matrices:
Note that also in case of matrices it is possible to (de-)serialize matrices with vector or matrix elements:
Note that just as the vector serialization, the matrix serialization is restricted by a few important rules:
StaticMatrix
, the number of rows and columns must match those of the serialized matrixIn case an error is encountered during (de-)serialization, a std::runtime_exception
is thrown.
Previous: Vector Serialization Next: Customization