#include #include "Vector3.h" #include "Matrix3.h" int main(int argc, char *argv[]) { Matrix3 M, M2; Vector3 v1, v2; cout << "Matrix M:" << endl << M << endl; cout << "Vector v1:" << endl << v1 << endl; cout << "Vector v2:" << endl << v2 << endl; // Matrix-vector multiply v2 = M * v1; cout << "After v2 = M * v1:" << endl << endl; cout << "Vector v1:" << endl << v1 << endl; cout << "Vector v2:" << endl << v2 << endl; M2 = v1 * M; cout << "After M2 = v1 * M:" << endl << endl; cout << "Matrix M:" << endl << M << endl; cout << "Matrix M2:" << endl << M2 << endl; }