issues
search
TRIQS
/
nda
C++ library for multi-dimensional arrays
https://triqs.github.io/nda
Other
13
stars
11
forks
source link
Fixes for negative strides
#73
Closed
Thoemi09
closed
1 month ago
Thoemi09
commented
2 months ago
Fixes an issue with assigning a scalar to a 1D view with negative strides.
Redefines the functions
is_contiguous
and
is_strided_1d
in
nda::idx_map
to also apply to views with negative strides.
Introduces the function
has_positive_strides
in
nda::idx_map
.
is_contiguous
andis_strided_1d
innda::idx_map
to also apply to views with negative strides.has_positive_strides
innda::idx_map
.