eisgenerator 2.1.x
eis::Parallel Class Reference

Inherits eis::ParallelSerial.

Collaboration diagram for eis::Parallel:
Collaboration graph

Public Member Functions

 Parallel (std::vector< Componant * > componantsIn=std::vector< Componant * >())
 Parallel (const Parallel &in)
void operator= (const Parallel &in)
virtual std::complex< fvalue > execute (fvalue omaga) override
virtual char getComponantChar () const override
virtual std::string getComponantString (bool currentValue=true, bool withCount=false) const override
 Gets this componant as a model string.
virtual std::string componantName () const override
virtual bool compileable () override
virtual std::string getCode (std::vector< std::string > &parameters) override
virtual std::string getTorchScript (std::vector< std::string > &parameters) override
virtual std::vector< fvalue > contributionRatio (fvalue omega) override
Public Member Functions inherited from eis::ParallelSerial
std::vector< bool > contributes (fvalue omega, fvalue threshold=0.01)
Public Member Functions inherited from eis::Componant
virtual void setParamRanges (const std::vector< eis::Range > &ranges)
virtual std::vector< eis::Range > & getParamRanges ()
virtual std::vector< eis::Range > getParamRanges () const
virtual std::vector< eis::Range > getDefaultParameters (bool range=true) const
virtual size_t paramCount () const
std::string getUniqueName ()
bool hasDefaultedParameters () const
 Checks if this componant had to use default parameters.

Static Public Member Functions

static constexpr char staticGetComponantChar ()
Static Public Member Functions inherited from eis::Componant
static Componant * copy (Componant *componant)
static Componant * createNewComponant (char componant, std::string paramStr="", size_t count=1, bool defaultToRange=false)
static bool isValidComponantChar (char componant)

Public Attributes

std::vector< Componant * > componants

Additional Inherited Members

Protected Member Functions inherited from eis::Componant
void initRanges (const std::string &paramStr, size_t count, bool defaultToRange)
Protected Attributes inherited from eis::Componant
std::vector< eis::Range > ranges
std::string uniqueName
bool defaultedParameters = false

Member Function Documentation

◆ compileable()

virtual bool eis::Parallel::compileable ( )
overridevirtual

Reimplemented from eis::Componant.

◆ componantName()

virtual std::string eis::Parallel::componantName ( ) const
inlineoverridevirtual

Implements eis::Componant.

◆ contributionRatio()

virtual std::vector< fvalue > eis::Parallel::contributionRatio ( fvalue omega)
overridevirtual

Implements eis::ParallelSerial.

◆ execute()

virtual std::complex< fvalue > eis::Parallel::execute ( fvalue omaga)
overridevirtual

Reimplemented from eis::Componant.

◆ getCode()

virtual std::string eis::Parallel::getCode ( std::vector< std::string > & parameters)
overridevirtual

Reimplemented from eis::Componant.

◆ getComponantChar()

virtual char eis::Parallel::getComponantChar ( ) const
overridevirtual

Implements eis::Componant.

◆ getComponantString()

virtual std::string eis::Parallel::getComponantString ( bool currentValue = true,
bool withCount = false ) const
overridevirtual

Gets this componant as a model string.

Parameters
currentValueIf true, the current step value of each parameter is printed instead of its range.
withCountIf true and currentValue is false, the sweep step count is appended to each range as start~endL:count, so that the string round trips through eis::Range::fromString. Ignored for current values.

Reimplemented from eis::Componant.

◆ getTorchScript()

virtual std::string eis::Parallel::getTorchScript ( std::vector< std::string > & parameters)
overridevirtual

Reimplemented from eis::Componant.