You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
360 B

#include "GMath.h"
int main() {
float a[] = {
0, 0, 0, 2,
0, 0, 2, 1,
0, 2, 1, 2,
2, 1, 2, 3
};
GMatrix A(4, 4, a);
//cout << B*A << endl;
cout << Det(A) << endl;
/*float a[] = {
1,0,
1,4
};
GMatrix A(2, 2, a);
float c[] = {
0,1,
1,0
};
GMatrix C(2, 2, c);
cout << A*A << endl;*/
return 0;
}