Skip to content

Create extendible dataset with H5Easy #933

Closed Answered by 1uc
jjcasmar asked this question in Questions
Discussion options

You must be logged in to vote

I can't spot anything in Easy that would allow you to do this.

For HighFive, you can look at this example:
https://github.com/BlueBrain/HighFive/blob/master/src/examples/create_extensible_dataset.cpp

You add compression by adding it to props.

The unfortunate twist is that you can't use Eigen matrices directly (we're working on it). However, since you have row-major matrices, you might be able to write directly from the pointer.

You'd use the following line instead:

dataset.select({0, 0}, {3, 1}).write_raw(ptr);

You need to double check that Eigen doesn't pad the inner dimension.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jjcasmar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants