ZerSol Library  0.0.0
Solver for all zeros of an analytic function that lie within a rectangular region of a complex plane
 All Classes Namespaces Files Functions Typedefs Friends Macros
Public Member Functions | Friends | List of all members
alg::zersol::ZeroSolver< T > Class Template Reference

The class implements the search algorithm for all zeros of a complex analytic function contained within a given rectangle. More...

#include <zerosolver.hpp>

Public Member Functions

 ZeroSolver (const Function< T > &F_, const Box< T > &B_, const Settings< T > &S_)
 A constructor of the ZeroSolver object.
 
 ~ZeroSolver (void)
 A destructor of the ZeroSolver object.
 
void print_status (std::ostream &output=std::cout) const
 Print the status of the zeros search.
 
int FindZeros (const int &N, Complex *Z, Complex *V, int &n_zeros)
 Run the zeros search procedure.
 

Friends

std::ostream & operator<< (std::ostream &output, const ZeroSolver< T > &ZS)
 An insertion operator to print content of the object.
 

Detailed Description

template<typename T = double>
class alg::zersol::ZeroSolver< T >

The class implements the search algorithm for all zeros of a complex analytic function contained within a given rectangle.

Constructor & Destructor Documentation

template<typename T = double>
alg::zersol::ZeroSolver< T >::ZeroSolver ( const Function< T > &  F_,
const Box< T > &  B_,
const Settings< T > &  S_ 
)
inline

A constructor of the ZeroSolver object.

Parameters
F_a type::Function object that defines the analytic function
B_a type::Box object that defines the rectangular region of a complex plane where the zeros are searched
S_a alg::zersol::Settings object that defines all settings used by the underlying algorithms
template<typename T = double>
alg::zersol::ZeroSolver< T >::~ZeroSolver ( void  )
inline

A destructor of the ZeroSolver object.

Member Function Documentation

template<typename T = double>
void alg::zersol::ZeroSolver< T >::print_status ( std::ostream &  output = std::cout) const
inline

Print the status of the zeros search.

Parameters
outputan output stream for the printing
template<typename T >
int alg::zersol::ZeroSolver< T >::FindZeros ( const int &  N,
Complex *  Z,
Complex *  V,
int &  n_zeros 
)

Run the zeros search procedure.

Parameters
Nlength of the passed Z and V arrays
Zarray for the function zeros
Varray for the function values V = F(Z)
n_zerosnumber of the zeros found
Returns
search status

Friends And Related Function Documentation

template<typename T = double>
std::ostream& operator<< ( std::ostream &  output,
const ZeroSolver< T > &  ZS 
)
friend

An insertion operator to print content of the object.

Parameters
outputan output stream for the insertion
ZSa ZeroSolver object to be inserted (printed)
Returns
output stream