Objects that inherit from FunctionVessel can be used (in tandem with PLMD::vesselbase::ActionWithVessel) to calculate functions of the form \(\prod_k H_k[ \sum_j \prod_i g_i(x) ]\).
More...
#include <FunctionVessel.h>
|
| void | error (const std::string &errmsg) |
| | Report an error.
|
| ActionWithVessel * | getAction () const |
| | Return a pointer to the action we are working in.
|
| std::string | getAllInput () |
| | This returns the whole input line (it is used for less_than/more_than/between).
|
| double | getNLTolerance () const |
| | Return the value of the neighbor list tolerance.
|
| int | getNumericalLabel () const |
| | Return the numerical label.
|
| unsigned | getSizeOfBuffer () const |
| | Return the size of the buffer.
|
| double | getTolerance () const |
| | Return the value of the tolerance.
|
| template<class T> |
| void | parse (const std::string &key, T &t) |
| | Parse something from the input.
|
| void | parseFlag (const std::string &key, bool &t) |
| | Parse one keyword as boolean flag.
|
| template<class T> |
| void | parseVector (const std::string &key, std::vector< T > &t) |
| | Parse one keyword as std::vector.
|
| void | resizeBuffer (const unsigned &n) |
| | Set the size of the data buffer.
|
| void | setOutputValue (const double &val) |
| | Set the final value.
|
|
| unsigned | bufstart |
| | The start of this Vessel's buffer in buffer in the underlying ActionWithVessel.
|
| bool | diffweight |
| | Are the derivatives differentiable.
|
| unsigned | mycomp |
| | The component that is being averaged/accumulated whatever.
|
| bool | norm |
| | Are we normalising by the weight.
|
| bool | usetol |
| | Are we using the tolerance.
|
Objects that inherit from FunctionVessel can be used (in tandem with PLMD::vesselbase::ActionWithVessel) to calculate functions of the form \(\prod_k H_k[ \sum_j \prod_i g_i(x) ]\).
They should take in a series of values and return one single value.
◆ FunctionVessel()
| PLMD::vesselbase::FunctionVessel::FunctionVessel |
( |
const VesselOptions & | da | ) |
|
|
explicit |
◆ applyForce()
| bool PLMD::vesselbase::ValueVessel::applyForce |
( |
std::vector< double > & | forces | ) |
|
|
overridevirtualinherited |
◆ calcTransform()
| double PLMD::vesselbase::FunctionVessel::calcTransform |
( |
const double & | val, |
|
|
double & | df ) const |
|
virtual |
◆ calculate()
| void PLMD::vesselbase::FunctionVessel::calculate |
( |
const unsigned & | current, |
|
|
MultiValue & | myvals, |
|
|
std::vector< double > & | buffer, |
|
|
std::vector< unsigned > & | der_list ) const |
|
overridevirtual |
◆ checkRead()
| void PLMD::vesselbase::Vessel::checkRead |
( |
| ) |
|
|
inherited |
Check that readin was fine.
◆ description()
| std::string PLMD::vesselbase::ValueVessel::description |
( |
| ) |
|
|
overridevirtualinherited |
◆ error()
| void PLMD::vesselbase::Vessel::error |
( |
const std::string & | errmsg | ) |
|
|
protectedinherited |
◆ finalTransform()
| double PLMD::vesselbase::FunctionVessel::finalTransform |
( |
const double & | val, |
|
|
double & | dv ) |
|
virtual |
◆ finish()
| void PLMD::vesselbase::FunctionVessel::finish |
( |
const std::vector< double > & | buffer | ) |
|
|
overridevirtual |
◆ getAction()
Return a pointer to the action we are working in.
◆ getAllInput()
| std::string PLMD::vesselbase::Vessel::getAllInput |
( |
| ) |
|
|
protectedinherited |
This returns the whole input line (it is used for less_than/more_than/between).
◆ getFinalValue()
| Value * PLMD::vesselbase::ValueVessel::getFinalValue |
( |
| ) |
const |
|
inlineinherited |
◆ getLabel()
| std::string PLMD::vesselbase::Vessel::getLabel |
( |
| ) |
const |
|
inherited |
◆ getName()
| std::string PLMD::vesselbase::Vessel::getName |
( |
| ) |
const |
|
inherited |
◆ getNLTolerance()
| double PLMD::vesselbase::Vessel::getNLTolerance |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the value of the neighbor list tolerance.
◆ getNumericalLabel()
| int PLMD::vesselbase::Vessel::getNumericalLabel |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the numerical label.
◆ getOutputValue()
| double PLMD::vesselbase::ValueVessel::getOutputValue |
( |
| ) |
const |
|
inlineinherited |
◆ getSizeOfBuffer()
| unsigned PLMD::vesselbase::Vessel::getSizeOfBuffer |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the size of the buffer.
◆ getTolerance()
| double PLMD::vesselbase::Vessel::getTolerance |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the value of the tolerance.
◆ parse()
template<class T>
| void PLMD::vesselbase::Vessel::parse |
( |
const std::string & | key, |
|
|
T & | t ) |
|
protectedinherited |
Parse something from the input.
◆ parseFlag()
| void PLMD::vesselbase::Vessel::parseFlag |
( |
const std::string & | key, |
|
|
bool & | t ) |
|
protectedinherited |
Parse one keyword as boolean flag.
◆ parseVector()
template<class T>
| void PLMD::vesselbase::Vessel::parseVector |
( |
const std::string & | key, |
|
|
std::vector< T > & | t ) |
|
protectedinherited |
Parse one keyword as std::vector.
◆ prepare()
| virtual void PLMD::vesselbase::Vessel::prepare |
( |
| ) |
|
|
inlinevirtualinherited |
◆ registerKeywords()
| void PLMD::vesselbase::FunctionVessel::registerKeywords |
( |
Keywords & | keys | ) |
|
|
static |
◆ resize()
| void PLMD::vesselbase::FunctionVessel::resize |
( |
| ) |
|
|
overridevirtual |
◆ resizeBuffer()
| void PLMD::vesselbase::Vessel::resizeBuffer |
( |
const unsigned & | n | ) |
|
|
inlineprotectedinherited |
Set the size of the data buffer.
◆ setBufferStart()
| void PLMD::vesselbase::Vessel::setBufferStart |
( |
unsigned & | start | ) |
|
|
inlinevirtualinherited |
◆ setOutputValue()
| void PLMD::vesselbase::ValueVessel::setOutputValue |
( |
const double & | val | ) |
|
|
inlineprotectedinherited |
◆ transformDerivatives()
◆ transformName()
| std::string PLMD::vesselbase::Vessel::transformName |
( |
const std::string & | name | ) |
|
|
staticinherited |
Convert the name to the label of the component.
◆ value_descriptor()
| virtual std::string PLMD::vesselbase::ValueVessel::value_descriptor |
( |
| ) |
|
|
pure virtualinherited |
Implemented in PLMD::crystallization::GradientVessel, PLMD::crystallization::VectorMean, PLMD::crystallization::VectorSum, PLMD::mapping::SpathVessel, PLMD::mapping::ZpathVessel, PLMD::vesselbase::AltMin, PLMD::vesselbase::Between, PLMD::vesselbase::Highest, PLMD::vesselbase::LessThan, PLMD::vesselbase::Lowest, PLMD::vesselbase::Max, PLMD::vesselbase::Mean, PLMD::vesselbase::Min, PLMD::vesselbase::MoreThan, and PLMD::vesselbase::Sum.
◆ action
The action that this vessel is created within.
◆ bufsize
| unsigned PLMD::vesselbase::Vessel::bufsize |
|
privateinherited |
The number of elements in this vessel's buffered data.
◆ bufstart
| unsigned PLMD::vesselbase::Vessel::bufstart |
|
protectedinherited |
◆ diffweight
| bool PLMD::vesselbase::FunctionVessel::diffweight |
|
protected |
Are the derivatives differentiable.
◆ final_value
| Value* PLMD::vesselbase::ValueVessel::final_value |
|
privateinherited |
◆ final_value_ptr
| std::unique_ptr<Value> PLMD::vesselbase::ValueVessel::final_value_ptr |
|
privateinherited |
◆ finished_read
| bool PLMD::vesselbase::Vessel::finished_read |
|
privateinherited |
This just checks we have done checkRead.
◆ keywords
◆ line
| std::vector<std::string> PLMD::vesselbase::Vessel::line |
|
privateinherited |
Directive line.
This line is progressively erased during vessel construction so as to check if all the present keywords are correct.
◆ mycomp
| unsigned PLMD::vesselbase::ValueVessel::mycomp |
|
protectedinherited |
The component that is being averaged/accumulated whatever.
◆ mylabel
| std::string PLMD::vesselbase::Vessel::mylabel |
|
privateinherited |
The label for the vessel for referencing.
◆ myname
| std::string PLMD::vesselbase::Vessel::myname |
|
privateinherited |
The keyword for the vessel in the input file.
◆ norm
| bool PLMD::vesselbase::FunctionVessel::norm |
|
protected |
Are we normalising by the weight.
◆ numlab
| const int PLMD::vesselbase::Vessel::numlab |
|
privateinherited |
The numerical label for this object.
◆ usetol
| bool PLMD::vesselbase::FunctionVessel::usetol |
|
protected |
Are we using the tolerance.
The documentation for this class was generated from the following files: