~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Numeric/Numeric.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-09-27 17:36:40 UTC
  • mfrom: (1.4.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090927173640-meoeywl4f5hq5qas
Tags: 2.4.2.dfsg-1
[Christophe Prud'homme]
* New upstream release
  + solver code refactoring
  + better IDE integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#define _NUMERIC_H_
8
8
 
9
9
#include <math.h>
10
 
#include "GmshMatrix.h"
 
10
#include "fullMatrix.h"
11
11
 
12
12
#define myhypot(a,b) (sqrt((a)*(a)+(b)*(b)))
13
13
#define sign(x)      (((x)>=0)?1:-1)
65
65
void eigenvalue(double mat[3][3], double re[3]);
66
66
void FindCubicRoots(const double coeff[4], double re[3], double im[3]);
67
67
void eigsort(double d[3]);
68
 
double InterpolateIso(double *X, double *Y, double *Z, 
69
 
                      double *Val, double V, int I1, int I2, 
70
 
                      double *XI, double *YI ,double *ZI);
71
68
void gradSimplex(double *x, double *y, double *z, double *v, double *grad);
72
69
double ComputeVonMises(double *val);
73
70
double ComputeScalarRep(int numComp, double *val);
74
71
void invert_singular_matrix3x3(double MM[3][3], double II[3][3]);
75
 
bool newton_fd(void (*func)(gmshVector<double> &, gmshVector<double> &, void *),
76
 
               gmshVector<double> &x, void *data, double relax=1., double tolx=1.e-6);
77
 
double minimize_grad_fd (double (*func)(gmshVector<double> &, void *),
78
 
                         gmshVector<double> &x, void *data);
 
72
bool newton_fd(void (*func)(fullVector<double> &, fullVector<double> &, void *),
 
73
               fullVector<double> &x, void *data, double relax=1., double tolx=1.e-6);
 
74
double minimize_grad_fd(double (*func)(fullVector<double> &, void *),
 
75
                        fullVector<double> &x, void *data);
79
76
 
80
77
#endif