LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::lqn::nlp_detail::LldExpr Class Reference

An lld expression, parsed once and evaluated over std::complex<double>. More...

#include <line/api/lqn/lqn_export_nlp.h>

Public Member Functions

 LldExpr (const std::string &src)
cplx eval (const cplx &n) const

Detailed Description

An lld expression, parsed once and evaluated over std::complex<double>.

Each operation takes REAL semantics when its operands are real, as python does on a float (log and sqrt of a negative number are nan, math.* raises), and complex semantics otherwise, which is what the complex step reads.

Definition at line 178 of file lqn_export_nlp.h.

Constructor & Destructor Documentation

◆ LldExpr()

line::lqn::nlp_detail::LldExpr::LldExpr ( const std::string & src)
inlineexplicit

Member Function Documentation

◆ eval()

cplx line::lqn::nlp_detail::LldExpr::eval ( const cplx & n) const
inline

Definition at line 187 of file lqn_export_nlp.h.


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