1 #include "../Eigen/Core" 2 3 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 #define CV_QUALIFIER 5 #else 6 #define CV_QUALIFIER const 7 #endif 8 9 using namespace Eigen; 10 11 void foo(const float *ptr, DenseIndex rows, DenseIndex cols){ 12 Map<CV_QUALIFIER MatrixXf, Unaligned, OuterStride<> > m(ptr, rows, cols, OuterStride<>(2)); 13 } 14 15 int main() {} 16