-
Notifications
You must be signed in to change notification settings - Fork 0
/
MatUtils.h
28 lines (25 loc) · 1005 Bytes
/
MatUtils.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
#ifndef _DEF_MATUTILS_H_DEFINED
#define _DEF_MATUTILS_H_DEFINED
#include <string>
class MatUtils
{
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*****************************************************************************
// U t i l i t y R o u t i n e s
private:
FILE* pFiled;
FILE* pFilee;
double maxmagerror;
public:
MatUtils();
~MatUtils();
void dMatMulV(double *a, double *x, double *b, int N);
int dmatcopy(double *from, int fromrows, int fromcols, double *to, int torows, int tocols, int startrow, int startcol);
double dnorm(double *r, int n);
void Errorprnt(double *r, double * b, double error, int k, int n, int errflag);
void dminmax(double *X, int N, double *min, double *max);
void dminmaxi(double *X, int N, double *min, double *max, int *mini, int *maxi);
void Printit(double *A, int M, int N);
void Fprintit(char c, double *A, int N);
};
#endif