PLaSK library
Loading...
Searching...
No Matches
bisection.cpp File Reference
#include "bisection.hpp"
#include <plask/parallel.hpp>
Include dependency graph for bisection.cpp:

Go to the source code of this file.

Classes

struct  plask::optical::effective::detail::ContourBisect
 

Namespaces

namespace  plask
 Patterson quadrature for complex function along specified line.
 
namespace  plask::optical
 
namespace  plask::optical::effective
 
namespace  plask::optical::effective::detail
 

Macros

#define CALL_FUN(result, re, im)
 

Functions

std::vector< std::pair< dcomplex, dcomplex > > plask::optical::effective::findZeros (const Solver *solver, const std::function< dcomplex(dcomplex)> &fun, dcomplex corner0, dcomplex corner1, size_t resteps, size_t imsteps, dcomplex eps)
 Global complex bisection algorithm.
 

Macro Definition Documentation

◆ CALL_FUN

#define CALL_FUN (   result,
  re,
  im 
)
Value:
if (error) continue; \
try { \
result = fun(dcomplex(re, im)); \
} catch (...) { \
PLASK_PRAGMA(omp critical) \
error = std::current_exception();\
}

Definition at line 19 of file bisection.cpp.