stator
A math, geometry, and utility library
Public Member Functions | Public Attributes | List of all members
sym::detail::FastSubRT Struct Reference

#include <runtime.hpp>

Inheritance diagram for sym::detail::FastSubRT:
sym::detail::VisitorHelper< FastSubRT > sym::detail::VisitorInterface

Public Member Functions

 FastSubRT (VarRT var, double replacement)
 
template<class T >
Expr apply (const T &v)
 
Expr apply (const double &v)
 
Expr apply (const VarRT &v)
 
template<typename Op >
auto apply (const UnaryOp< Expr, Op > &op) -> decltype(double(Op::apply(0.0)), Expr())
 
template<typename Op >
Expr apply (const BinaryOp< Expr, Op, Expr > &op)
 
- Public Member Functions inherited from sym::detail::VisitorHelper< FastSubRT >
virtual Expr visit (const double &x)
 
virtual Expr visit (const VarRT &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Sine > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Cosine > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Log > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Exp > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Absolute > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Arbsign > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Add, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Subtract, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Multiply, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Divide, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Power, Expr > &x)
 

Public Attributes

double _intermediate
 
double _replacement
 
VarRT _var
 

Detailed Description

Definition at line 658 of file runtime.hpp.

Constructor & Destructor Documentation

◆ FastSubRT()

sym::detail::FastSubRT::FastSubRT ( VarRT  var,
double  replacement 
)
inline

Definition at line 659 of file runtime.hpp.

Member Function Documentation

◆ apply() [1/5]

template<class T >
Expr sym::detail::FastSubRT::apply ( const T &  v)
inline

Definition at line 663 of file runtime.hpp.

◆ apply() [2/5]

Expr sym::detail::FastSubRT::apply ( const double &  v)
inline

Definition at line 665 of file runtime.hpp.

◆ apply() [3/5]

Expr sym::detail::FastSubRT::apply ( const VarRT v)
inline

Definition at line 671 of file runtime.hpp.

◆ apply() [4/5]

template<typename Op >
auto sym::detail::FastSubRT::apply ( const UnaryOp< Expr, Op > &  op) -> decltype(double(Op::apply(0.0)), Expr())
inline

Definition at line 680 of file runtime.hpp.

◆ apply() [5/5]

template<typename Op >
Expr sym::detail::FastSubRT::apply ( const BinaryOp< Expr, Op, Expr > &  op)
inline

Definition at line 687 of file runtime.hpp.

Member Data Documentation

◆ _intermediate

double sym::detail::FastSubRT::_intermediate

Definition at line 697 of file runtime.hpp.

◆ _replacement

double sym::detail::FastSubRT::_replacement

Definition at line 696 of file runtime.hpp.

◆ _var

VarRT sym::detail::FastSubRT::_var

Definition at line 695 of file runtime.hpp.


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