Image Component Library (ICL)
Namespaces | Macros | Typedefs | Functions | Variables
PolynomialSolver.h File Reference
#include <ICLUtils/BasicTypes.h>
#include <float.h>

Go to the source code of this file.

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::math
 

Macros

#define xbits(z)   DBL_MANT_DIG
 
#define xeta(z)   DBL_EPSILON
 

Typedefs

typedef std::complex< double > icl::math::xcomplex
 
typedef double icl::math::xreal
 

Functions

static xreal icl::math::xnorm (xcomplex z)
 
static xreal icl::math::xabs (xcomplex z)
 
static xreal icl::math::xroot (xreal x, int n)
 
static int icl::math::xlogb (xcomplex z)
 
static void icl::math::xscalbln (xcomplex *z, int e)
 
static xcomplex icl::math::cauchy (const int deg, xcomplex *P)
 
static void icl::math::scale (const int deg, xcomplex *P)
 
static void icl::math::noshft (const int l1, int deg, xcomplex *P, xcomplex *H)
 
static xcomplex icl::math::polyev (const int deg, const xcomplex s, const xcomplex *Q, xcomplex *q)
 
static xcomplex icl::math::calct (bool *bol, int deg, xcomplex Ps, xcomplex *H, xcomplex *h, xcomplex s)
 
static void icl::math::nexth (const bool bol, int deg, xcomplex t, xcomplex *H, xcomplex *h, xcomplex *p)
 
static xreal icl::math::errev (const int deg, const xcomplex *p, const xreal ms, const xreal mp)
 
static bool icl::math::vrshft (const int l3, int deg, xcomplex *P, xcomplex *p, xcomplex *H, xcomplex *h, xcomplex *zero, xcomplex *s)
 
static bool icl::math::fxshft (const int l2, int deg, xcomplex *P, xcomplex *p, xcomplex *H, xcomplex *h, xcomplex *zero, xcomplex *s)
 
int icl::math::cpoly (int degree, const xcomplex poly[], xcomplex Roots[])
 
int icl::math::solve_poly (int degree, const double *in_real, const double *in_imag, double *out_real, double *out_imag)
 

Variables

struct {
   double   icl::math::ZERO
 
   double   icl::math::INFIN
 
   int   icl::math::MIN_EXP
 
   int   icl::math::MAX_EXP
 
icl::math::xdata = { 0.0, DBL_MAX, DBL_MIN_EXP, DBL_MAX_EXP }
 

Macro Definition Documentation

◆ xbits

#define xbits (   z)    DBL_MANT_DIG

◆ xeta

#define xeta (   z)    DBL_EPSILON