Closed dominikkiese closed 1 year ago
The problem with the above code is the following: make_regular
will copy the stride layout of the permuted array, such that Bmat
will not have a stride of dimension 1 (exception triggered in debug mode). This can be avoided by replacing make_regular
with the constructor for array<double, 3>
.
I added the following test to tests/c++/nda_functions.cpp
If we replace auto
Bmat = matrix_view<double>{B(k, _, _)};
withauto Bmat = matrix<double>{B(k, _, _)};
the test passes. Note that only the second expect is triggered, the data itself seems to be the same. Currently checked out5d9c817
onsym_grp_pr
branch.