14
cout << "Starting with mat2 (should be identity): " << endl << endl;
19
cout << endl << "Matrix should now have (0, 1) == -2.500000" << endl << endl;
24
cout << endl << "Copy of previous matrix (should have (0, 1) == -2.500000)" << endl << endl;
29
cout << endl << "Inverse of copy: " << endl << endl;
34
cout << endl << "Product of original and inverse (should be identity): " << endl << endl;
49
cout << "Starting with mat3 (should be identity): " << endl << endl;
54
cout << endl << "Matrix should now have (1, 2) == -2.500000" << endl << endl;
59
cout << endl << "Copy of previous matrix (should have (1, 2) == -2.500000)" << endl << endl;
64
cout << endl << "Inverse of copy: " << endl << endl;
69
cout << endl << "Product of original and inverse (should be identity): " << endl << endl;
84
cout << "Starting with mat4 (should be identity): " << endl << endl;
89
cout << endl << "Matrix should now have (2, 3) == -2.500000" << endl << endl;
94
cout << endl << "Copy of previous matrix (should have (2, 3) == -2.500000)" << endl << endl;
99
cout << endl << "Inverse of copy: " << endl << endl;
104
cout << endl << "Product of original and inverse (should be identity): " << endl << endl;
117
main(int argc, char** argv)
121
cerr << "mat2::inverse() does not work!" << endl;
124
cout << "mat2::inverse() is okay!" << endl << endl;
128
cerr << "mat3::inverse() does not work!" << endl;
131
cout << "mat3::inverse() is okay!" << endl << endl;
135
cerr << "mat4::inverse() does not work!" << endl;
138
cout << "mat4::inverse() is okay!" << endl << endl;