| #include <iostream> | |
| #include <tvmet/Matrix.h> | |
| using namespace std; | |
| using namespace tvmet; | |
| int main() { | |
| // Matrix stuff I | |
| Matrix<double,3,3> m1, m2, m3; | |
| m1 = 1,2,3, | |
| 4,5,6, | |
| 7,8,9; | |
| m2 = trans(m1); | |
| cout << "Xpr Level printing of " | |
| << m1 << "\n*\n" << m2 <<"\nresults into:\n"; | |
| cout << m1*m2 << endl; | |
| cout << "The result =\n"; | |
| m3 = m1*m2; | |
| cout << m3 << endl << endl; | |
| } |