Store data in column-major order

We reverse the axes on reading and writing.
So the data are stored as such, but the axes are stored as 3,2 instead
of 2,3.

Cheers,
Ger

Yuqing Zhang <yz@anybodytech.com> 08/21/09 4:47 PM >>>

Just have started using hdf5 for a short time.

I'm having a one dimension array read from a 2D matrix in column-major
order.

For example, a 2*3 matrix:
1 2 3
4 5 6

So the array should be: 1,4,2,5,3,6. I'm now wondering how to write this
array into a hdf dataset.

Thank you.

Yuqing Zhang
AnyBody Technology A/S,
www.anybodytech.com<http://www.anybodytech.com/>
Niels Jernes Vej 10, 9220, Aalborg Øst, Denmark

Mobile: +45 60710765
Email: yz@anybodytech.com<mailto:yz@anybodytech.com>