PLaSK library
Loading...
Searching...
No Matches
plask::optical::modal::RootBrent Class Reference

#include <solvers/optical/modal/brent.hpp>

Inheritance diagram for plask::optical::modal::RootBrent:
[legend]
Collaboration diagram for plask::optical::modal::RootBrent:
[legend]

Public Member Functions

 RootBrent (ModalBase &solver, const function_type &val_fun, const Params &pars, const char *name)
 
dcomplex find (dcomplex start) override
 Search for a single mode starting from the given point: point.
 
- Public Member Functions inherited from plask::optical::modal::RootDigger
 RootDigger (ModalBase &solver, const function_type &val_fun, const Params &pars, const char *name)
 
virtual ~RootDigger ()
 

Protected Member Functions

double axisBrent (dcomplex start, double &fx, bool real, int &counter)
 
- Protected Member Functions inherited from plask::optical::modal::RootDigger
template<typename... Args>
void writelog (LogLevel level, const std::string &msg, Args &&... args) const
 
dcomplex valFunction (dcomplex x) const
 

Additional Inherited Members

- Public Types inherited from plask::optical::modal::RootDigger
enum  Method { ROOT_MULLER , ROOT_BROYDEN , ROOT_BRENT }
 Root finding method. More...
 
typedef std::function< dcomplex(dcomplex)> function_type
 
- Public Attributes inherited from plask::optical::modal::RootDigger
Params params
 
- Protected Attributes inherited from plask::optical::modal::RootDigger
ModalBasesolver
 
function_type val_function
 
DataLog< dcomplex, dcomplex > log_value
 

Detailed Description

Definition at line 22 of file brent.hpp.

Constructor & Destructor Documentation

◆ RootBrent()

plask::optical::modal::RootBrent::RootBrent ( ModalBase solver,
const function_type val_fun,
const Params pars,
const char name 
)
inline

Definition at line 38 of file brent.hpp.

Member Function Documentation

◆ axisBrent()

double plask::optical::modal::RootBrent::axisBrent ( dcomplex  start,
double fx,
bool  real,
int counter 
)
protected

Definition at line 22 of file brent.cpp.

◆ find()

dcomplex plask::optical::modal::RootBrent::find ( dcomplex  start)
overridevirtual

Search for a single mode starting from the given point: point.

Implements plask::optical::modal::RootDigger.

Definition at line 176 of file brent.cpp.


The documentation for this class was generated from the following files: