bpp-core3  3.0.0
bpp::ConstantOperator Class Reference

Constant (ie leaf) operator. More...

#include <Bpp/Numeric/Function/Operators/ConstantOperator.h>

+ Inheritance diagram for bpp::ConstantOperator:
+ Collaboration diagram for bpp::ConstantOperator:

Public Member Functions

 ConstantOperator (double value)
 
ConstantOperatorclone () const
 Create a copy of this object and send a pointer to it. More...
 
double getValue () const
 
double getFirstOrderDerivative (const std::string &variable) const
 
double getSecondOrderDerivative (const std::string &variable) const
 
std::string output () const
 

Private Attributes

const double value_
 

Detailed Description

Constant (ie leaf) operator.

Definition at line 55 of file ConstantOperator.h.

Constructor & Destructor Documentation

◆ ConstantOperator()

bpp::ConstantOperator::ConstantOperator ( double  value)
inline

Definition at line 62 of file ConstantOperator.h.

Referenced by clone().

Member Function Documentation

◆ clone()

ConstantOperator* bpp::ConstantOperator::clone ( ) const
inlinevirtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Definition at line 65 of file ConstantOperator.h.

References ConstantOperator().

◆ getFirstOrderDerivative()

double bpp::ConstantOperator::getFirstOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::Operator.

Definition at line 75 of file ConstantOperator.h.

◆ getSecondOrderDerivative()

double bpp::ConstantOperator::getSecondOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::Operator.

Definition at line 80 of file ConstantOperator.h.

◆ getValue()

double bpp::ConstantOperator::getValue ( ) const
inlinevirtual

Implements bpp::Operator.

Definition at line 70 of file ConstantOperator.h.

References value_.

◆ output()

std::string bpp::ConstantOperator::output ( ) const
inlinevirtual

Implements bpp::Operator.

Definition at line 85 of file ConstantOperator.h.

References bpp::TextTools::toString(), and value_.

Member Data Documentation

◆ value_

const double bpp::ConstantOperator::value_
private

Definition at line 59 of file ConstantOperator.h.

Referenced by getValue(), and output().


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