2 cout <<
"Here is the matrix m:" << endl <<
m << endl;
3 cout <<
"Here is the sum of each row:" << endl <<
m.rowwise().sum() << endl;
4 cout <<
"Here is the maximum absolute value of each row:"
5 << endl <<
m.cwiseAbs().rowwise().maxCoeff() << endl;
Matrix< double, 3, 3 > Matrix3d
3×3 matrix of type double.