Canoe
Comprehensive Atmosphere N' Ocean Engine
linalg.h
Go to the documentation of this file.
1 #ifndef SRC_CLIMATH_LINALG_H_
2 #define SRC_CLIMATH_LINALG_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 double vvdot(double const *a, double const *b, int n);
9 void mvdot(double *r, double **m, double const *v, int n1, int n2);
10 int ludcmp(double **a, int n, int *indx);
11 void lubksb(double **a, int n, int *indx, double *b);
12 void leastsq(double **A, double *b, int n1, int n2);
13 void tridiag(int n, double *a, double *b, double *c, double *r, double *u,
14  int pivot_type);
15 
16 void band_decomp(int n, int m1, int m2, double *a, double *al, int *index,
17  double *d);
18 void band_back_sub(int n, int m1, int m2, double *a, double *al, int *index,
19  double *b);
20 void band_multiply(int n, int m1, int m2, double *a, double *x, double *b);
21 void band_improve(int n, int m1, int m2, double *aorig, double *a, double *al,
22  int *index, double *b, double *x);
23 
24 #ifdef __cplusplus
25 } /* extern "C" */
26 #endif
27 
28 #endif // SRC_CLIMATH_LINALG_H_
#define A(i, j)
Definition: band_back_sub.c:18
void band_back_sub(int n, int m1, int m2, double *a, double *al, int *index, double *b)
Definition: band_back_sub.c:22
void leastsq(double **A, double *b, int n1, int n2)
Definition: leastsq.c:11
void band_improve(int n, int m1, int m2, double *aorig, double *a, double *al, int *index, double *b, double *x)
Definition: band_improve.c:36
void lubksb(double **a, int n, int *indx, double *b)
Definition: lubksb.c:14
void mvdot(double *r, double **m, double const *v, int n1, int n2)
Definition: mvdot.c:7
void band_decomp(int n, int m1, int m2, double *a, double *al, int *index, double *d)
Definition: band_decomp.c:28
void band_multiply(int n, int m1, int m2, double *a, double *x, double *b)
Definition: band_multiply.c:28
int ludcmp(double **a, int n, int *indx)
Definition: ludcmp.c:14
double vvdot(double const *a, double const *b, int n)
Definition: vvdot.c:5
void tridiag(int n, double *a, double *b, double *c, double *r, double *u, int pivot_type)
Definition: tridiag.c:25