-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H5Easy read into existing object #695
Comments
You might want to consider file.getDataSet(path).read(iface.data()); If we would want to consider amending |
The "normal" API wont work in this case, since it doesn't implement loading something as an Eigen::Map or Eigen::RowMajor, afaik, as discussed in #694 |
I may have looked too quickly ;). Can you get an iterator from |
Not sure if that is possible, maybe yes. However, that implies kind of redoing all the logic HighFive already does when loading a dataset into an Eigen::Matrix using |
Regarding giving the function a different name, I totally agree, maybe |
|
I have an
std::vector<Eigen::Vector3f>
already allocated and I want to populate the values of that vector with data coming from a dataset. Right now, to populate, I am doing something like thisThis however has a caveat. HighFive is allocating space for the Eigen::Matrix where it has to load the data, and the a copy is made from the Eigen::Matrix to the Eigen::Map.
Would it be possible to add API to H5Easy to be able to pass an existing object where we want the data to be loaded?
The text was updated successfully, but these errors were encountered: