Open scontini76 opened 2 years ago
Great find! Hmmm there is more to this, get to it in a sec... The top one shouldn't be happening: write - read == 0
whereas the h5dump case is not quite straightforward.
The first case is a clear bug. Thanks for letting me know! The second one is complicated: Linear algebra libraries mark the layout with transpose
flag but HDF5 doesn't have this feature, leading to:
transpose
Will take a closer look when I can, until I am adding @gheber to the conversation. best: steve
Ok, let me know if you need some tests from me. Then I wish HDFGroup consider to add a transpose flag! In the meanwhile I'll transpose the data before writing them, or I'll do the trick of reverting be0a191
Consider this code:
That give this output:
That looks wrong in h5dump:
What I expected is:
Which is fine in h5dump too:
To have what I expected I must revert the commit "arma matrix rows/cols swapped to correct C/Fortran order mismatch" (be0a1918156433457ded8e33206ba74438e107e4)
Can you confirm that something is wrong in the library or I'm doing something stupid? :)