39 lines
546 B
C++
39 lines
546 B
C++
#include <iostream>
|
|
|
|
#include "matrix.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
/*Matrix m(3, 3, 0);
|
|
m.init_with_sequence();
|
|
m[0][0] = 5;
|
|
m[2][2] = -3;
|
|
m[1][2] = 0;
|
|
|
|
cout << m << endl;
|
|
|
|
cout << m.det() << endl;*/
|
|
|
|
Matrix m(3, 2, 0);
|
|
m[0][0] = 3;
|
|
m[0][1] = 0;
|
|
m[0][2] = 2;
|
|
|
|
m[1][0] = 2;
|
|
m[1][1] = -1;
|
|
m[1][2] = 0;
|
|
|
|
/*m[2][0] = 1;
|
|
m[2][1] = 2;
|
|
m[2][2] = 1;*/
|
|
|
|
cout << m;
|
|
|
|
//cout << m.det() << endl;
|
|
Matrix tm = m.get_transposed_matrix();
|
|
cout << tm;
|
|
|
|
return 0;
|
|
}
|