Derivative class for a quantity that is the sum of two other quantities. More...
#include <SumDerivatives.h>
Public Member Functions | |
SumDerivatives (const FunctionDerivatives *derivative1, const FunctionDerivatives *derivative2, bool delete_inputs=true) | |
Create a derivative object for a sum of two quantities: q1+q2. More... | |
double | order (unsigned deriv_order=1) const |
The deriv_order-th derivative. More... | |
~SumDerivatives () | |
Clean up. More... | |
Public Member Functions inherited from Core::FunctionDerivatives | |
virtual | ~FunctionDerivatives () |
Clean up. More... | |
Private Attributes | |
const FunctionDerivatives * | q1_deriv |
The derivatives of the first quantity in the sum. More... | |
const FunctionDerivatives * | q2_deriv |
The derivatives of the second quantity in the sum. More... | |
bool | destroy_derivs |
Whether to delete the input derivative when the object is destroyed. More... | |
Derivative class for a quantity that is the sum of two other quantities.
Definition at line 21 of file SumDerivatives.h.
|
inline |
Create a derivative object for a sum of two quantities: q1+q2.
derivative1 | Pointer to the derivative of the first quantity (q1). |
derivative2 | Pointer to the derivative of the second quantity (q2). |
delete_inputs | Delete the input derivatives on destruction? |
Definition at line 34 of file SumDerivatives.h.
|
inline |
Clean up.
Definition at line 51 of file SumDerivatives.h.
|
inlinevirtual |
The deriv_order-th derivative.
Implements Core::FunctionDerivatives.
Definition at line 47 of file SumDerivatives.h.
|
private |
Whether to delete the input derivative when the object is destroyed.
Definition at line 31 of file SumDerivatives.h.
|
private |
The derivatives of the first quantity in the sum.
Definition at line 24 of file SumDerivatives.h.
|
private |
The derivatives of the second quantity in the sum.
Definition at line 24 of file SumDerivatives.h.