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

#include <runtime.hpp>

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

Public Member Functions

 DerivativeRT (VarRT var)
 
template<class T , typename = typename std::enable_if<IsConstant<T>::value>::type>
Expr apply (const T &v)
 Visitor to allow the compile time derivative implementation for unary operators. More...
 
Expr apply (const VarRT &v)
 
template<class Op >
Expr apply (const UnaryOp< Expr, Op > &v)
 
template<typename Op >
Expr apply (const BinaryOp< Expr, Op, Expr > &op)
 
- Public Member Functions inherited from sym::detail::VisitorHelper< DerivativeRT >
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

VarRT _var
 

Detailed Description

Definition at line 563 of file runtime.hpp.

Constructor & Destructor Documentation

◆ DerivativeRT()

sym::detail::DerivativeRT::DerivativeRT ( VarRT  var)
inline

Definition at line 564 of file runtime.hpp.

Member Function Documentation

◆ apply() [1/4]

template<class T , typename = typename std::enable_if<IsConstant<T>::value>::type>
Expr sym::detail::DerivativeRT::apply ( const T &  v)
inline

This visitor is used to determine the type of the argument.

Handover to compile-time implementation for binary op derivatives.

Definition at line 591 of file runtime.hpp.

◆ apply() [2/4]

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

Definition at line 595 of file runtime.hpp.

◆ apply() [3/4]

template<class Op >
Expr sym::detail::DerivativeRT::apply ( const UnaryOp< Expr, Op > &  v)
inline

Definition at line 600 of file runtime.hpp.

◆ apply() [4/4]

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

Definition at line 607 of file runtime.hpp.

Member Data Documentation

◆ _var

VarRT sym::detail::DerivativeRT::_var

Definition at line 613 of file runtime.hpp.


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