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 19 of file ConstantOperator.h.

Constructor & Destructor Documentation

◆ ConstantOperator()

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

Definition at line 26 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 29 of file ConstantOperator.h.

References ConstantOperator().

◆ getFirstOrderDerivative()

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

Implements bpp::Operator.

Definition at line 39 of file ConstantOperator.h.

◆ getSecondOrderDerivative()

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

Implements bpp::Operator.

Definition at line 44 of file ConstantOperator.h.

◆ getValue()

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

Implements bpp::Operator.

Definition at line 34 of file ConstantOperator.h.

References value_.

◆ output()

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

Implements bpp::Operator.

Definition at line 49 of file ConstantOperator.h.

References bpp::TextTools::toString().

Member Data Documentation

◆ value_

const double bpp::ConstantOperator::value_
private

Definition at line 23 of file ConstantOperator.h.

Referenced by getValue().


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