CbmRoot
PolynomComplexRoots.h File Reference
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdlib.h>
Include dependency graph for PolynomComplexRoots.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define maxiter   500
 

Functions

int roots (float *a, int n, float *wr, float *wi)
 
void deflate (float *a, int n, float *b, float *quad, float *err)
 
void find_quad (float *a, int n, float *b, float *quad, float *err, int *iter)
 
void diff_poly (float *a, int n, float *b)
 
void recurse (float *a, int n, float *b, int m, float *quad, float *err, int *iter)
 
void get_quads (float *a, int n, float *quad, float *x)
 
void polynomComplexRoots (float *wr, float *wi, int n, float *a, int &numr)
 

Macro Definition Documentation

◆ maxiter

#define maxiter   500

Definition at line 7 of file PolynomComplexRoots.h.

Function Documentation

◆ deflate()

void deflate ( float *  a,
int  n,
float *  b,
float *  quad,
float *  err 
)

Definition at line 54 of file PolynomComplexRoots.h.

References fabs(), and i.

Referenced by get_quads().

◆ diff_poly()

void diff_poly ( float *  a,
int  n,
float *  b 
)

Definition at line 124 of file PolynomComplexRoots.h.

References i.

Referenced by get_quads(), and recurse().

◆ find_quad()

void find_quad ( float *  a,
int  n,
float *  b,
float *  quad,
float *  err,
int *  iter 
)

Definition at line 79 of file PolynomComplexRoots.h.

References fabs(), i, and maxiter.

Referenced by get_quads(), and recurse().

◆ get_quads()

void get_quads ( float *  a,
int  n,
float *  quad,
float *  x 
)

Definition at line 198 of file PolynomComplexRoots.h.

References deflate(), diff_poly(), find_quad(), i, m, maxiter, recurse(), and x.

Referenced by polynomComplexRoots().

◆ polynomComplexRoots()

void polynomComplexRoots ( float *  wr,
float *  wi,
int  n,
float *  a,
int &  numr 
)

Definition at line 262 of file PolynomComplexRoots.h.

References get_quads(), roots(), and x.

Referenced by PsdSignalFitting::PronyFitter::CalculateFitHarmonics().

◆ recurse()

void recurse ( float *  a,
int  n,
float *  b,
int  m,
float *  quad,
float *  err,
int *  iter 
)

Definition at line 154 of file PolynomComplexRoots.h.

References diff_poly(), fabs(), find_quad(), m, and x.

Referenced by get_quads().

◆ roots()

int roots ( float *  a,
int  n,
float *  wr,
float *  wi 
)

Definition at line 11 of file PolynomComplexRoots.h.

References fabs(), m, and sqrt().

Referenced by polynomComplexRoots().