-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
53 lines (39 loc) · 669 Bytes
/
test.cpp
File metadata and controls
53 lines (39 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <iostream>
#include "matrix3f.h"
using namespace std;
int main(){
Matrix3f a;
Matrix3f b;
b.set(0, 0, 1);
b.set(0, 1, 1);
b.set(0, 2, 1);
b.set(1, 0, 1);
b.set(1, 1, 1);
b.set(1, 2, -1);
b.set(2, 0, 1);
b.set(2, 1, -1);
b.set(2, 2, 1);
b.get_eigenvektors();
// cout << b << '\n';
// cout << b.get_inverse() << '\n';
/*
a.set(0, 0, 1);
a.set(0, 1, 2);
a.set(0, 2, 3);
a.set(1, 0, 4);
a.set(1, 1, 5);
a.set(1, 2, 6);
a.set(2, 0, 7);
a.set(2, 1, 8);
a.set(2, 2, 9);
Matrix3f c = a * b;
cout << c;
c.chg_row(0, 2);
cout << c;
c.mult_row(1, 3.14);
cout << c;
c.add_row(0, 2, 4);
cout << c;
*/
return 0;
}