-
Reproducer: https://github.com/shivupa/highfiveh5easyquestion
Question: When dumping a eigen column vs row vector, I would expect the shape in the hdf5 file to be
Is this expected and if so is there a way to get the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This seems intentional, yes: For row or column vectors you're likely not affected by the bug in core HighFive. Hence, you could try using something like
(A However, you should not start using core HighFive with Eigen matrices or anything genuinely 2D since core HighFive isn't aware that Eigen uses FORTRAN style indexing conventions; while everything else uses C-style. |
Beta Was this translation helpful? Give feedback.
This seems intentional, yes:
https://github.com/BlueBrain/HighFive/blob/master/include/highfive/h5easy_bits/H5Easy_Eigen.hpp#L48
https://github.com/BlueBrain/HighFive/blob/master/include/highfive/h5easy_bits/H5Easy_Eigen.hpp#L89
For row or column vectors you're likely not affected by the bug in core HighFive. Hence, you could try using something like
(A
H5Easy::File
is simply aHighFive::File
it seems.) If I read the output of your reproducer with the modification, it actually gets the order of columns and row right. However, I tend t…