We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xt::
XTensor support various memory layouts. H5Easy implements XTensor support as follows:
template <typename T> struct io_impl<T, typename std::enable_if<xt::is_xexpression<T>::value>::type> { ... inline static DataSet dump(File& file, const std::string& path, const T& data, const DumpOptions& options) { DataSet dataset = initDataset<value_type>(file, path, shape(data), options); dataset.write_raw(data.data()); ...
which is correct for row-major layouts without padding or striding. The following code however compiles and runs:
xt::xarray<double, xt::layout_type::row_major> a({{1, 2, 3}, {4, 5, 6}}); H5Easy::dump(file, "a", a);
The text was updated successfully, but these errors were encountered:
(In your example, you meant to put column_major I guess?)
column_major
A quick fix is to add a static_assert
static_assert
Sorry, something went wrong.
Fixed by #989.
No branches or pull requests
XTensor support various memory layouts. H5Easy implements XTensor support as follows:
which is correct for row-major layouts without padding or striding. The following code however compiles and runs:
The text was updated successfully, but these errors were encountered: