bpp-core3  3.0.0
bpp::NegativeOperator Class Reference

Negative value for an operator. More...

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

+ Inheritance diagram for bpp::NegativeOperator:
+ Collaboration diagram for bpp::NegativeOperator:

Public Member Functions

 NegativeOperator (std::shared_ptr< Operator > son)
 
NegativeOperatorclone () const
 Create a copy of this object and send a pointer to it. More...
 
std::shared_ptr< OperatorgetSon ()
 
double getValue () const
 
double getFirstOrderDerivative (const std::string &variable) const
 
double getSecondOrderDerivative (const std::string &variable) const
 
std::string output () const
 

Private Attributes

std::shared_ptr< Operatorson_
 

Detailed Description

Negative value for an operator.

Definition at line 18 of file NegativeOperator.h.

Constructor & Destructor Documentation

◆ NegativeOperator()

bpp::NegativeOperator::NegativeOperator ( std::shared_ptr< Operator son)
inline

Definition at line 25 of file NegativeOperator.h.

Referenced by clone().

Member Function Documentation

◆ clone()

NegativeOperator* bpp::NegativeOperator::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 NegativeOperator.h.

References NegativeOperator().

◆ getFirstOrderDerivative()

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

Implements bpp::Operator.

Definition at line 44 of file NegativeOperator.h.

◆ getSecondOrderDerivative()

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

Implements bpp::Operator.

Definition at line 49 of file NegativeOperator.h.

◆ getSon()

std::shared_ptr<Operator> bpp::NegativeOperator::getSon ( )
inline

Definition at line 34 of file NegativeOperator.h.

References son_.

◆ getValue()

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

Implements bpp::Operator.

Definition at line 39 of file NegativeOperator.h.

◆ output()

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

Implements bpp::Operator.

Definition at line 54 of file NegativeOperator.h.

Member Data Documentation

◆ son_

std::shared_ptr<Operator> bpp::NegativeOperator::son_
private

Definition at line 22 of file NegativeOperator.h.

Referenced by getSon().


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