suanPan
SimpleVectorExpression Class Referencefinal

#include <Expression.h>

Inheritance diagram for SimpleVectorExpression:
Collaboration diagram for SimpleVectorExpression:

Public Member Functions

 SimpleVectorExpression (unsigned, const std::string_view &, const std::string_view &)
 
unique_ptr< Expressionget_copy () const override
 
uword output_size () const override
 
Mat< double > evaluate (const Col< double > &) override
 
Mat< double > gradient (const Col< double > &) override
 
- Public Member Functions inherited from Expression
 Expression (unsigned, std::vector< std::string > &&)
 
 Expression (const Expression &)=delete
 
 Expression (Expression &&) noexcept=delete
 
Expressionoperator= (const Expression &)=delete
 
Expressionoperator= (Expression &&) noexcept=delete
 
 ~Expression () override=default
 
virtual unique_ptr< Expressionget_copy () const =0
 
virtual uword input_size () const
 
virtual uword output_size () const
 
bool compile (const std::string_view &)
 
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 std::string error ()
 
- Protected Attributes inherited from Expression
Col< double > x
 
std::string expression_text
 
std::vector< std::string > variable_text_list
 
exprtk::expression< double > expression
 
exprtk::symbol_table< double > symbol_table
 

Constructor & Destructor Documentation

◆ SimpleVectorExpression()

SimpleVectorExpression::SimpleVectorExpression ( unsigned  tag,
const std::string_view &  input_string,
const std::string_view &  output_string 
)

Member Function Documentation

◆ evaluate()

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

Implements Expression.

Here is the call graph for this function:

◆ get_copy()

unique_ptr< Expression > SimpleVectorExpression::get_copy ( ) const
overridevirtual

Implements Expression.

Here is the call graph for this function:

◆ gradient()

Mat< double > SimpleVectorExpression::gradient ( const Col< double > &  )
inlineoverridevirtual

Implements Expression.

◆ output_size()

uword SimpleVectorExpression::output_size ( ) const
overridevirtual

Reimplemented from Expression.


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