|
BmnRoot
|
#include <iomanip>#include <iostream>#include <math.h>#include <stdlib.h>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) |
| #define maxiter 500 |
Definition at line 11 of file PolynomComplexRoots.h.
| void deflate | ( | float * | a, |
| int | n, | ||
| float * | b, | ||
| float * | quad, | ||
| float * | err | ||
| ) |
Definition at line 60 of file PolynomComplexRoots.h.
Referenced by get_quads().
| void diff_poly | ( | float * | a, |
| int | n, | ||
| float * | b | ||
| ) |
Definition at line 133 of file PolynomComplexRoots.h.
References i.
Referenced by get_quads(), and recurse().
| void find_quad | ( | float * | a, |
| int | n, | ||
| float * | b, | ||
| float * | quad, | ||
| float * | err, | ||
| int * | iter | ||
| ) |
Definition at line 85 of file PolynomComplexRoots.h.
References fabs(), i, and maxiter.
Referenced by get_quads(), and recurse().
| void get_quads | ( | float * | a, |
| int | n, | ||
| float * | quad, | ||
| float * | x | ||
| ) |
Definition at line 203 of file PolynomComplexRoots.h.
References deflate(), diff_poly(), find_quad(), i, m, maxiter, and recurse().
Referenced by polynomComplexRoots().
| void polynomComplexRoots | ( | float * | wr, |
| float * | wi, | ||
| int | n, | ||
| float * | a, | ||
| int & | numr | ||
| ) |
Definition at line 268 of file PolynomComplexRoots.h.
References get_quads(), and roots().
Referenced by PsdSignalFitting::PronyFitter::CalculateFitHarmonics().
| void recurse | ( | float * | a, |
| int | n, | ||
| float * | b, | ||
| int | m, | ||
| float * | quad, | ||
| float * | err, | ||
| int * | iter | ||
| ) |
Definition at line 163 of file PolynomComplexRoots.h.
References diff_poly(), fabs(), find_quad(), m, and recurse().
Referenced by get_quads(), and recurse().
| int roots | ( | float * | a, |
| int | n, | ||
| float * | wr, | ||
| float * | wi | ||
| ) |
Definition at line 16 of file PolynomComplexRoots.h.
References fabs(), m, and sqrt().
Referenced by polynomComplexRoots().