aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_prod.cpp
blob: d2f27bdc3279c836d21d1fc2f2a4598724efe5c1 (plain)
1
2
3
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the product of all the coefficients:" << endl << m.prod() << endl;