Class FunctionWrapper

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::FunctionWrapper : public SymEngine::FunctionSymbol

Use this class to define custom functions by overriding the defaut behaviour for create, eval, diff, eq, compare etc.

Public Functions

FunctionWrapper(std::string name, const vec_basic &arg)
FunctionWrapper(std::string name, const RCP<const Basic> &arg)
RCP<const Basic> create(const vec_basic &v) const = 0

Method to construct classes with canonicalization.

RCP<const Number> eval(long bits) const = 0
RCP<const Basic> diff_impl(const RCP<const Symbol> &s) const = 0