-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrix.h
More file actions
29 lines (26 loc) · 763 Bytes
/
Matrix.h
File metadata and controls
29 lines (26 loc) · 763 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
#include <iostream>
#include <string>
#include <stdexcept>
#ifndef MATRIX_H
#define MATRIX_H
using namespace std;
class Matrix{
friend ostream& operator<<(ostream& out,const Matrix& m);
public:
Matrix(int pheight,int pwidth);
Matrix(const Matrix& other);
~Matrix();
double Determinante(void) const;
double ZeilenSummennorm(void)const;
double SpaltenSummennorm(void)const;
double Frobeniusnorm(void)const;
bool Zeilensummenkriterium(void)const;
ostream& LU(ostream& out)const;
Matrix& operator=(const Matrix& other);
double& operator()(int index1,int index2) const;
private:
double **matrix;
int height;
int width;
};
#endif // MATRIX_H