HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_RootFinderT< T > Class Template Reference

#include <UT_RootFinder.h>

Static Public Member Functions

static void laguerre (const UT_ValArray< T > &cf, UT_ValArray< T > &roots, int maxIters=200)
 
static int quadratic (T a, T b, T c, T &v0, T &v1)
 
static int quadratic (T a, T b, T c, UT_Vector2T< T > &r_roots, UT_Vector2T< T > &i_roots)
 
static int cubic (T a, T b, T c, T d, T &v0, T &v1, T &v2)
 
static int cubic (T a, T b, T c, T d, UT_Vector3T< T > &r_roots, UT_Vector3T< T > &i_roots)
 
static int cubic (T a, T b, T c, T d, T x1, T x2, T r[3])
 
static int quartic (T a, T b, T c, T d, T e, T x1, T x2, T r[4])
 
static int brent (T(*func)(T x, void *data), void *data, T x1, T x2, T tol, T &result, int maxIter=200)
 
static int newton (void(*func)(T x, T &val, T &der, void *data), void *data, T x1, T x2, T tol, T &result, int maxIter=200)
 
template<typename S >
static int newton (void(*func)(const UT_VectorT< S > &x, UT_VectorT< S > &val, UT_MatrixT< T > &jacobi, void *data), void *data, S tolx, S tolf, UT_VectorT< S > &result, int maxIter=200)
 
template<typename S >
static int newton (void(*func)(const UT_VectorT< S > &x, UT_VectorT< S > &val, UT_MatrixT< T > &jacobi, void *data), void *data, const UT_VectorT< S > &x1, const UT_VectorT< S > &x2, S tolx, S tolf, UT_VectorT< S > &result, int maxIter=200)
 

Detailed Description

template<typename T>
class UT_RootFinderT< T >

Definition at line 24 of file UT_RootFinder.h.

Member Function Documentation

template<typename T >
static int UT_RootFinderT< T >::brent ( T(*)(T x, void *data func,
void data,
T  x1,
T  x2,
T  tol,
T result,
int  maxIter = 200 
)
static
template<typename T >
static int UT_RootFinderT< T >::cubic ( T  a,
T  b,
T  c,
T  d,
T v0,
T v1,
T v2 
)
static
template<typename T >
static int UT_RootFinderT< T >::cubic ( T  a,
T  b,
T  c,
T  d,
UT_Vector3T< T > &  r_roots,
UT_Vector3T< T > &  i_roots 
)
static
template<typename T >
static int UT_RootFinderT< T >::cubic ( T  a,
T  b,
T  c,
T  d,
T  x1,
T  x2,
T  r[3] 
)
static
template<typename T >
static void UT_RootFinderT< T >::laguerre ( const UT_ValArray< T > &  cf,
UT_ValArray< T > &  roots,
int  maxIters = 200 
)
static
template<typename T >
static int UT_RootFinderT< T >::newton ( void(*)(T x, T &val, T &der, void *data func,
void data,
T  x1,
T  x2,
T  tol,
T result,
int  maxIter = 200 
)
static
template<typename T >
template<typename S >
static int UT_RootFinderT< T >::newton ( void(*)(const UT_VectorT< S > &x, UT_VectorT< S > &val, UT_MatrixT< T > &jacobi, void *data func,
void data,
S  tolx,
S  tolf,
UT_VectorT< S > &  result,
int  maxIter = 200 
)
static
template<typename T >
template<typename S >
static int UT_RootFinderT< T >::newton ( void(*)(const UT_VectorT< S > &x, UT_VectorT< S > &val, UT_MatrixT< T > &jacobi, void *data func,
void data,
const UT_VectorT< S > &  x1,
const UT_VectorT< S > &  x2,
S  tolx,
S  tolf,
UT_VectorT< S > &  result,
int  maxIter = 200 
)
static
template<typename T >
static int UT_RootFinderT< T >::quadratic ( T  a,
T  b,
T  c,
T v0,
T v1 
)
static
template<typename T >
static int UT_RootFinderT< T >::quadratic ( T  a,
T  b,
T  c,
UT_Vector2T< T > &  r_roots,
UT_Vector2T< T > &  i_roots 
)
static
template<typename T >
static int UT_RootFinderT< T >::quartic ( T  a,
T  b,
T  c,
T  d,
T  e,
T  x1,
T  x2,
T  r[4] 
)
static

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