Browse Source

矩阵和逆矩阵相乘得一

master
blobt 4 years ago
parent
commit
d935c51d39
  1. BIN
      .vs/3dMath/v15/.suo
  2. 16
      main.cpp

BIN
.vs/3dMath/v15/.suo

16
main.cpp

@ -28,6 +28,20 @@ int main() {
GMatrix M2 = Transpose(M1);
cout << M2 << endl;
cout << M1 * M2 << endl;
cout << Det(M1) * Det(M2) << endl;
float a[] = {
1, 2, 3,
3, 1, 2,
2, 3, 1
};
GMatrix M3(3, 3, a);
GMatrix M4 = Inverse(M3);
cout << M3 << endl;
cout << M4 << endl;
cout << Det(M3) * Det(M4) << endl;
return 0;
}
Loading…
Cancel
Save