UT_RootFinder Class Reference

#include <UT_RootFinder.h>

List of all members.

Public Member Functions

int brent (float(*func)(float x, void *data), void *data, fpreal x1, fpreal x2, fpreal tol, float &result, int maxIter=200)
int newton (void(*func)(float x, float &val, float &der, void *data), void *data, float x1, float x2, float tol, float &result, int maxIter=200)
int newton (void(*func)(const UT_Vector &x, UT_Vector &val, UT_Matrix &jacobi, void *data), void *data, float tolx, float tolf, UT_Vector &result, int maxIter=200)
int newton (void(*func)(const UT_Vector &x, UT_Vector &val, UT_Matrix &jacobi, void *data), void *data, const UT_Vector &x1, const UT_Vector &x2, float tolx, float tolf, UT_Vector &result, int maxIter=200)

Static Public Member Functions

static void laguerre (const UT_FloatArray &cf, UT_FloatArray &roots, int maxIters=200)
static int quadratic (fpreal32 a, fpreal32 b, fpreal32 c, fpreal32 &v0, fpreal32 &v1)
static int quadratic (fpreal64 a, fpreal64 b, fpreal64 c, fpreal64 &v0, fpreal64 &v1)
static int quadratic (fpreal32 a, fpreal32 b, fpreal32 c, UT_Vector2 &r_roots, UT_Vector2 &i_roots)
static int cubic (fpreal a, fpreal b, fpreal c, fpreal d, float &v0, float &v1, float &v2)
static int cubic (fpreal a, fpreal b, fpreal c, fpreal d, UT_Vector3 &r_roots, UT_Vector3 &i_roots)
static int cubic (fpreal a, fpreal b, fpreal c, fpreal d, float x1, float x2, float r[3])
static int quartic (fpreal a, fpreal b, fpreal c, fpreal d, fpreal e, float x1, float x2, float r[4])


Detailed Description

Definition at line 35 of file UT_RootFinder.h.


Member Function Documentation

int UT_RootFinder::brent ( float(*)(float x, void *data func,
void *  data,
fpreal  x1,
fpreal  x2,
fpreal  tol,
float &  result,
int  maxIter = 200 
)

static int UT_RootFinder::cubic ( fpreal  a,
fpreal  b,
fpreal  c,
fpreal  d,
float  x1,
float  x2,
float  r[3] 
) [static]

static int UT_RootFinder::cubic ( fpreal  a,
fpreal  b,
fpreal  c,
fpreal  d,
UT_Vector3 r_roots,
UT_Vector3 i_roots 
) [static]

static int UT_RootFinder::cubic ( fpreal  a,
fpreal  b,
fpreal  c,
fpreal  d,
float &  v0,
float &  v1,
float &  v2 
) [static]

static void UT_RootFinder::laguerre ( const UT_FloatArray cf,
UT_FloatArray roots,
int  maxIters = 200 
) [static]

int UT_RootFinder::newton ( void(*)(const UT_Vector &x, UT_Vector &val, UT_Matrix &jacobi, void *data func,
void *  data,
const UT_Vector x1,
const UT_Vector x2,
float  tolx,
float  tolf,
UT_Vector result,
int  maxIter = 200 
)

int UT_RootFinder::newton ( void(*)(const UT_Vector &x, UT_Vector &val, UT_Matrix &jacobi, void *data func,
void *  data,
float  tolx,
float  tolf,
UT_Vector result,
int  maxIter = 200 
)

int UT_RootFinder::newton ( void(*)(float x, float &val, float &der, void *data func,
void *  data,
float  x1,
float  x2,
float  tol,
float &  result,
int  maxIter = 200 
)

static int UT_RootFinder::quadratic ( fpreal32  a,
fpreal32  b,
fpreal32  c,
UT_Vector2 r_roots,
UT_Vector2 i_roots 
) [static]

static int UT_RootFinder::quadratic ( fpreal64  a,
fpreal64  b,
fpreal64  c,
fpreal64 v0,
fpreal64 v1 
) [static]

static int UT_RootFinder::quadratic ( fpreal32  a,
fpreal32  b,
fpreal32  c,
fpreal32 v0,
fpreal32 v1 
) [static]

static int UT_RootFinder::quartic ( fpreal  a,
fpreal  b,
fpreal  c,
fpreal  d,
fpreal  e,
float  x1,
float  x2,
float  r[4] 
) [static]


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:52 2012 for HDK by  doxygen 1.5.9