![]() |
Blaze
3.6
|
The following example demonstrates the (de-)serialization of dense and sparse vectors:
The (de-)serialization of vectors is not restricted to vectors of built-in data type, but can also be used for vectors with vector or matrix element type:
As the examples demonstrates, the vector serialization offers an enormous flexibility. However, several actions result in errors:
StaticVector
, its size must match the size of the serialized vectorIn case an error is encountered during (de-)serialization, a std::runtime_exception
is thrown.
Previous: Serialization Next: Matrix Serialization