Select mulptiple hyperslabs in some order



Lets suppose I have a 2D dataset.
I want to prepare a selection for rows {1, 7, 4} and write data at once.

For that I use the function H5Sselect_hyperslab with H5S_seloper_t = H5S_SELECT_OR.

But after writing in such selection I find that the data was written in sorted order i.e. rows {1, 4, 7}.

Is there a way to select rows in arbitrary order?


Nope, the selections in source and destination are iterated in C or Fortran grid-point order. Everything else could be very inefficient, and you’ll have to do any permutations on your own. G.


Thank you for information!