blob: a048beffa9d8bc60be38dd1b7444eced0253ec22 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Matrix3d m = Matrix3d::Random();
2cout << "Here is the matrix m:" << endl << m << endl;
3cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl;
4cout << "Here is the maximum absolute value of each column:"
5 << endl << m.cwiseAbs().colwise().maxCoeff() << endl;