suanPan
Loading...
Searching...
No Matches
SimpleScalarExpression Class Reference

#include <Expression.h>

Inheritance diagram for SimpleScalarExpression:
Collaboration diagram for SimpleScalarExpression:

Public Member Functions

Mat< double > evaluate (const Col< double > &) override
 
Mat< double > gradient (const Col< double > &) override
 
 Expression (unsigned, const std::string &)
 
- Public Member Functions inherited from Expression
 Expression (unsigned, const std::string &)
 
virtual uword input_size () const
 
virtual uword output_size () const
 
bool compile (const std::string &)
 
Mat< double > evaluate (double)
 
virtual Mat< double > evaluate (const Col< double > &)=0
 
Mat< double > gradient (double)
 
virtual Mat< double > gradient (const Col< double > &)=0
 
void print () override
 
- Public Member Functions inherited from Tag
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&)=default
 
Tagoperator= (const Tag &)=delete
 
Tagoperator= (Tag &&)=delete
 
virtual ~Tag ()=default
 
void set_tag (unsigned) const
 
unsigned get_tag () const
 
void enable ()
 
void disable ()
 
void guard ()
 
void unguard ()
 
bool is_active () const
 
bool is_guarded () const
 
virtual void print ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Expression
static string error ()
 
- Protected Attributes inherited from Expression
Col< double > x
 
exprtk::expression< double > expression
 
exprtk::symbol_table< double > symbol_table
 

Member Function Documentation

◆ evaluate()

Mat< double > SimpleScalarExpression::evaluate ( const Col< double > &  in_x)
overridevirtual

Implements Expression.

Here is the call graph for this function:

◆ Expression()

Expression::Expression ( unsigned  tag,
const std::string &  variable_string 
)
explicit

◆ gradient()

Mat< double > SimpleScalarExpression::gradient ( const Col< double > &  in_x)
overridevirtual

Implements Expression.

Here is the call graph for this function:

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