Constant Expression. More...
#include <ExpressionNode.h>
Public Member Functions | |
void | print (const std::string &indent="") const override |
Print. More... | |
T | traceExecution (const Values &values, ExecutionTrace< T > &trace, char *traceStorage) const override |
Construct an execution trace for reverse AD. More... | |
T | value (const Values &values) const override |
Return value. More... | |
~ConstantExpression () override | |
Destructor. More... | |
Public Member Functions inherited from gtsam::internal::ExpressionNode< T > | |
virtual void | dims (std::map< Key, int > &map) const |
Return dimensions for each argument, as a map. More... | |
virtual std::set< Key > | keys () const |
Return keys that play in this expression as a set. More... | |
size_t | traceSize () const |
virtual | ~ExpressionNode () |
Destructor. More... | |
Private Member Functions | |
ConstantExpression (const T &value) | |
Constructor with a value, yielding a constant. More... | |
Private Attributes | |
T | constant_ |
The constant value. More... | |
Friends | |
class | Expression< T > |
Additional Inherited Members | |
Protected Member Functions inherited from gtsam::internal::ExpressionNode< T > | |
ExpressionNode (size_t traceSize=0) | |
Constructor, traceSize is size of the execution trace of expression rooted here. More... | |
Protected Attributes inherited from gtsam::internal::ExpressionNode< T > | |
size_t | traceSize_ |
Constant Expression.
Definition at line 119 of file ExpressionNode.h.
|
inlineprivate |
Constructor with a value, yielding a constant.
Definition at line 125 of file ExpressionNode.h.
|
inlineoverride |
Destructor.
Definition at line 134 of file ExpressionNode.h.
|
inlineoverridevirtual |
Print.
Implements gtsam::internal::ExpressionNode< T >.
Definition at line 138 of file ExpressionNode.h.
|
inlineoverridevirtual |
Construct an execution trace for reverse AD.
Implements gtsam::internal::ExpressionNode< T >.
Definition at line 148 of file ExpressionNode.h.
|
inlineoverridevirtual |
Return value.
Implements gtsam::internal::ExpressionNode< T >.
Definition at line 143 of file ExpressionNode.h.
|
friend |
Definition at line 129 of file ExpressionNode.h.
|
private |
The constant value.
Definition at line 122 of file ExpressionNode.h.