-
Notifications
You must be signed in to change notification settings - Fork 0
/
gaussSerial.h
31 lines (24 loc) · 864 Bytes
/
gaussSerial.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
/*
* File: gaussSerial.h
* Author: zhakov
*
* Created on 4 Декабрь 2012 г., 23:51
*/
#ifndef GAUSSSERIAL_H
#define GAUSSSERIAL_H
class gaussSerial {
public:
gaussSerial(int size);
gaussSerial(const gaussSerial& orig);
virtual ~gaussSerial();
int resultCalculation(double** pMatrix, double* pVector, double* pResult);
private:
int mSize;
int* pSerialPivotPos; // The number of pivot rows selected at the iterations
int* pSerialPivotIter; // The iterations, at which the rows were pivots
int findPivotRow(double** pMatrix, int Iter);
int serialGaussianElimination(double** pMatrix, double* pVector);
int serialBackSubstitution(double** pMatrix, double* pVector, double* pResult);
int serialColumnElimination(double** pMatrix, double* pVector, int Pivot, int Iter);
};
#endif /* GAUSSSERIAL_H */