When using StridedDomain in Blitz, we cannot declare it as a variable like
blitz::StridedDomain<3> strideView;
The above code gives me a compile-time error. However, no such problem exists with the below code:
blitz::RectDomain<3> blockView;
This is because in blitz/array/domain.h, there is an empty constructor for RectDomain, but not for StridedDomain. Adding an empty constructor here eliminates the compile-time error for me.
When using StridedDomain in Blitz, we cannot declare it as a variable like
blitz::StridedDomain<3> strideView;
The above code gives me a compile-time error. However, no such problem exists with the below code:
blitz::RectDomain<3> blockView;
This is because in
blitz/array/domain.h
, there is an empty constructor forRectDomain
, but not forStridedDomain
. Adding an empty constructor here eliminates the compile-time error for me.