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.

30 lines
360 B

4 years ago
4 years ago
4 years ago
  1. #include "GMath.h"
  2. int main() {
  3. float a[] = {
  4. 0, 0, 0, 2,
  5. 0, 0, 2, 1,
  6. 0, 2, 1, 2,
  7. 2, 1, 2, 3
  8. };
  9. GMatrix A(4, 4, a);
  10. //cout << B*A << endl;
  11. cout << Det(A) << endl;
  12. /*float a[] = {
  13. 1,0,
  14. 1,4
  15. };
  16. GMatrix A(2, 2, a);
  17. float c[] = {
  18. 0,1,
  19. 1,0
  20. };
  21. GMatrix C(2, 2, c);
  22. cout << A*A << endl;*/
  23. return 0;
  24. }