-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (27 loc) · 664 Bytes
/
Copy pathmain.cpp
File metadata and controls
39 lines (27 loc) · 664 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
#include <iostream>
#include "Algebra.h"
#include "RecursiveFilter.h"
int main() {
float** matrix = init_matrix(4, 4);
matrix[0][0] = 4;
matrix[0][1] = 3;
matrix[0][2] = 9;
matrix[0][3] = 2;
matrix[1][0] = 8;
matrix[1][1] = 0;
matrix[1][2] = 3;
matrix[1][3] = 4;
matrix[2][0] = 5;
matrix[2][1] = 1;
matrix[2][2] = 6;
matrix[2][3] = 3;
matrix[3][0] = 7;
matrix[3][1] = 5;
matrix[3][2] = 2;
matrix[3][3] = 1;
print_matrix(matrix, 4, 4);
std::cout << average(10) << std::endl;
std::cout << average(20) << std::endl;
std::cout << average(30) << std::endl;
return 0;
}