TwiceAsNice  2019-02-18
Classes | Macros | Typedefs | Functions
poly.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

struct  poly
 

Macros

#define POLY_MAXDIM   4 /* Max dimensionality of polynom */
 
#define POLY_MAXDEGREE   10 /* Max degree of the polynom */
 
#define POLY_TINY   1e-30 /* A tiny number */
 

Typedefs

typedef struct poly polystruct
 

Functions

polystructpoly_copy (polystruct *poly)
 
polystructpoly_init (int *group, int ndim, int *degree, int ngroup)
 
double poly_func (polystruct *poly, double *pos)
 
int cholsolve (double *a, double *b, int n)
 
int * poly_powers (polystruct *poly)
 
void poly_addcste (polystruct *poly, double *cste)
 
void poly_end (polystruct *poly)
 
void poly_fit (polystruct *poly, double *x, double *y, double *w, int ndata, double *extbasis)
 
void poly_solve (double *a, double *b, int n)
 

Macro Definition Documentation

◆ POLY_MAXDEGREE

#define POLY_MAXDEGREE   10 /* Max degree of the polynom */

◆ POLY_MAXDIM

#define POLY_MAXDIM   4 /* Max dimensionality of polynom */

◆ POLY_TINY

#define POLY_TINY   1e-30 /* A tiny number */

Typedef Documentation

◆ polystruct

typedef struct poly polystruct

Function Documentation

◆ cholsolve()

int cholsolve ( double *  a,
double *  b,
int  n 
)

◆ poly_addcste()

void poly_addcste ( polystruct poly,
double *  cste 
)

◆ poly_copy()

polystruct* poly_copy ( polystruct poly)

◆ poly_end()

void poly_end ( polystruct poly)

◆ poly_fit()

void poly_fit ( polystruct poly,
double *  x,
double *  y,
double *  w,
int  ndata,
double *  extbasis 
)

◆ poly_func()

double poly_func ( polystruct poly,
double *  pos 
)

◆ poly_init()

polystruct * poly_init ( int *  group,
int  ndim,
int *  degree,
int  ngroup 
)

◆ poly_powers()

int * poly_powers ( polystruct poly)

◆ poly_solve()

void poly_solve ( double *  a,
double *  b,
int  n 
)