Reputation: 233
Looking through the HDF5 C API, I found H5Tvlen_create
for creating 1d variable-length datatypes. How about multi-dimensional variable-length datatypes? Are they supported?
Clearly variable-length 1d datatypes can be combined to create 2d ones. However, is there a more direct way? My problem is that I have an array of structures (compound types), which have a property of type int**
(or 2d int array). But, the size of the 2d arrays are not fixed.
Upvotes: 1
Views: 529
Reputation: 32943
One way to do it is to make this property of your compound array a reference to another dataset. You can put the referenced datasets in another group to keep things tidy, and of course each dataset can have its own size (or even a different number of dimensions).
Another ugly solution would be to have a variable-length array of variable-length arrays… Nah, don't do this!
Upvotes: 1