-
Notifications
You must be signed in to change notification settings - Fork 5
/
squareMat.h
31 lines (30 loc) · 963 Bytes
/
squareMat.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
30
31
#ifndef Matrix_h_DEFINED
#define Matrix_h_DEFINED
#include <vector>
namespace Arash{
class squareMat{
private:
std::vector<std::vector<long double>> elements;
public:
int size;
squareMat(){};
squareMat(int);
squareMat(std::vector<std::vector<long double>>v,int s):size(s),elements(v){};
~squareMat();
void getCofactor(std::vector<std::vector<long double>> ,std::vector<std::vector<long double>>& , int p, int q,int n);
void getCofactor(long double** ,long double** ,int ,int ,int );
long double det(std::vector<std::vector<long double>>& ,int n);
long double det(long double** ,int);
long double det();
void inverse(squareMat&);
squareMat inverse();
void transpose(squareMat&);
squareMat transpose();
void minor(squareMat&);
squareMat adjoint();
long double& operator()(int ,int);
long double operator()(int ,int) const;
squareMat& operator=(const squareMat&);
};
}
#endif