BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
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 10 of file PolynomComplexRoots.h.

Referenced by find_quad(), and get_quads().

Function Documentation

◆ deflate()

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

Definition at line 60 of file PolynomComplexRoots.h.

References fabs(), i, and n.

Referenced by get_quads().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ diff_poly()

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

Definition at line 135 of file PolynomComplexRoots.h.

References i, and n.

Referenced by get_quads(), and recurse().

Here is the caller graph for this function:

◆ find_quad()

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

Definition at line 86 of file PolynomComplexRoots.h.

References fabs(), i, maxiter, and n.

Referenced by get_quads(), and recurse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_quads()

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

Definition at line 206 of file PolynomComplexRoots.h.

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

Referenced by polynomComplexRoots().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ polynomComplexRoots()

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

Definition at line 272 of file PolynomComplexRoots.h.

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ recurse()

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

Definition at line 166 of file PolynomComplexRoots.h.

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

Referenced by get_quads(), and recurse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ roots()

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

Definition at line 15 of file PolynomComplexRoots.h.

References fabs(), m, and n.

Referenced by polynomComplexRoots().

Here is the call graph for this function:
Here is the caller graph for this function: