Home | History | Annotate | Download | only in snippets

Lines Matching refs:mat

1 MatrixXf mat(2,2); 
2 mat << 1, 2, 4, 7;
3 cout << "Here is the matrix mat:\n" << mat << endl << endl;
5 mat = 2 * mat;
6 cout << "After 'mat = 2 * mat', mat = \n" << mat << endl << endl;
9 mat = mat - MatrixXf::Identity(2,2);
10 cout << "After the subtraction, it becomes\n" << mat << endl << endl;
13 ArrayXXf arr = mat;
18 mat << 1, 2, 4, 7;
19 mat = (2 * mat - MatrixXf::Identity(2,2)).array().square();
20 cout << "Doing everything at once yields\n" << mat << endl << endl;