Saving multidimensional vector to hdf5 format.

Hello Forum,

Since multidimensional vectors in C++ (vector<vector<vector<etc...>>>) are not necessarily rectangular, we have to find an efficient way to save them.
I use Octave/Matlab Cell arrays in order to save such multidimensional vectors.
I wrote my own libraries to that end, but I am currently migrating my code to hdf5 format on C++. Then my question is:
What is the best way to save a multidimensional vector in hdf5 format using C++?

Thanks!!

Dario
Never done that, but since HDF5 has C++ interface and documentation, I would look at them.

Chunks, perhaps:
https://portal.hdfgroup.org/display/HDF5/Chunking+in+HDF5

A matrix that is not "full" is "sparse":
https://stackoverflow.com/questions/3545349/sparse-array-support-in-hdf5
Topic archived. No new replies allowed.