10 std::cout <<
"1-norm(m) = " <<
m.cwiseAbs().colwise().sum().maxCoeff()
11 <<
" == " <<
m.colwise().lpNorm<1>().maxCoeff() << std::endl;
13 std::cout <<
"infty-norm(m) = " <<
m.cwiseAbs().rowwise().sum().maxCoeff()
14 <<
" == " <<
m.rowwise().lpNorm<1>().maxCoeff() << std::endl;
The matrix class, also used for vectors and row-vectors.