-
Notifications
You must be signed in to change notification settings - Fork 17
/
accelerate.h
32 lines (20 loc) · 925 Bytes
/
accelerate.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
32
/* ------- begin -------------------------- Accelerate.h ------------
Version: rh2.0
Author: Han Uitenbroek ([email protected])
Last modified: Tue Dec 28 14:02:56 1999 --
-------------------------- ----------RH-- */
#ifndef __ACCELERATE_H__
#define __ACCELERATE_H__
/* --- Defines structure and prototypes for Ng acceleration -- ------ */
struct Ng {
int N, Ndelay, Norder, Nperiod, count;
double **previous, **A, *b, *theStorage;
};
/* --- Associated function prototypes -- -------------- */
bool_t Accelerate(struct Ng *Ngs, double *solution);
void NgFree(struct Ng *Ngs);
struct Ng *NgInit(int N, int Ndelay, int Norder, int Nperiod,
double *solution);
double MaxChange(struct Ng *Ngs, char *text, bool_t quiet);
#endif /* !__ACCELERATE_H__ */
/* ------- end ---------------------------- Accelerate.h ------------ */