ColPack
SampleDrivers/Matrix_Compression_and_Recovery/SMB/eval_fun_chem.c File Reference
#include "adolc.h"

Go to the source code of this file.

Defines

#define nel   5
#define ndis   20
#define cstr   8575
#define n1   1
#define n2   2
#define n3   2
#define n4   1
#define ncol   6
#define nex   (ndis * n1)
#define nfe   ((n1 + n2) * ndis)
#define nra   ((n1 + n2 + n3) * ndis)
#define nde   ((n1 + n2 + n3 + n4) * ndis)
#define pex   0.95
#define pra   0.95
#define kA   (2*ndis)
#define kB   ndis
#define cFEA   0.1
#define cFEB   0.1
#define qmax   2

Functions

void init_dim (int *n, int *m)
void init_startpoint (double *x, int n)
double feval (double *x, int n)
adouble feval_ad (double *x, int n)
void ceval (double *x, double *c, int n)
void ceval_ad (double *x, adouble *c, int n)

Variables

double kk = 0
double omega [3][3]
double h [nel]

Define Documentation

#define cFEA   0.1

Definition at line 115 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), and init_startpoint().

#define cFEB   0.1

Definition at line 116 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), and init_startpoint().

#define cstr   8575

Definition at line 54 of file eval_fun_chem.c.

Referenced by feval(), feval_ad(), and init_dim().

#define kA   (2*ndis)

Definition at line 112 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define kB   ndis

Definition at line 113 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define n1   1

Definition at line 98 of file eval_fun_chem.c.

#define n2   2

Definition at line 99 of file eval_fun_chem.c.

#define n3   2

Definition at line 100 of file eval_fun_chem.c.

#define n4   1

Definition at line 101 of file eval_fun_chem.c.

#define ncol   6

Definition at line 102 of file eval_fun_chem.c.

#define nde   ((n1 + n2 + n3 + n4) * ndis)

Definition at line 107 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), init_dim(), and init_startpoint().

#define ndis   20

Definition at line 53 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define nel   5

Definition at line 48 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), init_dim(), and init_startpoint().

#define nex   (ndis * n1)

Definition at line 104 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define nfe   ((n1 + n2) * ndis)

Definition at line 105 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define nra   ((n1 + n2 + n3) * ndis)

Definition at line 106 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

#define pex   0.95

Definition at line 109 of file eval_fun_chem.c.

#define pra   0.95

Definition at line 110 of file eval_fun_chem.c.

#define qmax   2

Definition at line 118 of file eval_fun_chem.c.


Function Documentation

void ceval ( double *  x,
double *  c,
int  n 
)

Definition at line 824 of file eval_fun_chem.c.

References cFEA, cFEB, h, kA, kB, kk, nde, ndis, nel, nex, nfe, nra, and omega.

Referenced by main().

Here is the caller graph for this function:

void ceval_ad ( double *  x,
adouble *  c,
int  n 
)

Definition at line 1110 of file eval_fun_chem.c.

References cFEA, cFEB, h, kA, kB, kk, nde, ndis, nel, nex, nfe, nra, and omega.

Referenced by main().

Here is the caller graph for this function:

double feval ( double *  x,
int  n 
)

Definition at line 199 of file eval_fun_chem.c.

References cFEA, cFEB, cstr, h, kA, kB, kk, nde, ndis, nel, nex, nfe, nra, and omega.

Referenced by main().

Here is the caller graph for this function:

adouble feval_ad ( double *  x,
int  n 
)

Definition at line 511 of file eval_fun_chem.c.

References cFEA, cFEB, cstr, h, kA, kB, kk, nde, ndis, nel, nex, nfe, nra, and omega.

Referenced by main().

Here is the caller graph for this function:

void init_dim ( int *  n,
int *  m 
)

Definition at line 131 of file eval_fun_chem.c.

References cstr, nde, and nel.

Referenced by main().

Here is the caller graph for this function:

void init_startpoint ( double *  x,
int  n 
)

Definition at line 145 of file eval_fun_chem.c.

References cFEA, cFEB, h, nde, nel, and omega.

Referenced by main().

Here is the caller graph for this function:


Variable Documentation

double h[nel]

Definition at line 126 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), and init_startpoint().

double kk = 0

Definition at line 122 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), and feval_ad().

double omega[3][3]

Definition at line 124 of file eval_fun_chem.c.

Referenced by ceval(), ceval_ad(), feval(), feval_ad(), and init_startpoint().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines