#include #include #include #include #include // <-- NEW -| #include #include namespace ublas = boost::numeric::ublas; int main() { typedef double value_type; typedef ublas::matrix matrix_type1; typedef ublas::matrix, ublas::layout_type::type> matrix_type2; // typedef ublas::matrix, ublas::row_major> matrix_type2; // typedef ublas::matrix, ublas::column_major> matrix_type2; // To check at compile time, uncomment this BOOST_MPL_ASSERT(( boost::is_same< ublas::matrix_traits::orientation_category, ublas::matrix_traits::orientation_category > )); // To check at runtime time, uncomment this bool flag = boost::is_same< ublas::matrix_traits::orientation_category, ublas::matrix_traits::orientation_category >::value; if (!flag) { std::cerr << "Different layout storage." << std::endl; } }