-
Notifications
You must be signed in to change notification settings - Fork 0
/
Matrix.h
29 lines (22 loc) · 962 Bytes
/
Matrix.h
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
#include <string>
using namespace std;
class Matrix{
private:
int number_rows;
int number_columns;
int **index_M;
int **index_N;
public:
Matrix();
~Matrix();
void Inverse(string type_matrix, int number_rows, float **M, float **N);
void Inverse(string type_matrix, int number_rows, double **M, double **N);
void Multiplication(int M_rows, int M_columns, int N_columns, float **M, float **N, float **O);
void Multiplication(int M_rows, int M_columns, int N_columns, double **M, double **N, double **O);
void Transpose(int number_rows, int number_columns, float **M, float **N);
void Transpose(int number_rows, int number_columns, double **M, double **N);
int LU_Decomposition(int number_rows, float **M, float **L, float **U);
int LU_Decomposition(int number_rows, double **M, double **L, double **U);
float Determinant(string type_matrix, int number_rows, float **M);
double Determinant(string type_matrix, int number_rows, double **M);
};