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