Class Symbol

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SymEngine::Symbol : public SymEngine::Basic

Subclassed by SymEngine::Dummy

Public Functions

Symbol(const std::string &name)

Symbol Constructor.

hash_t __hash__() const

Return

Size of the hash

bool __eq__(const Basic &o) const

Equality comparator

Return

whether the 2 objects are equal

Parameters
  • o: - Object to be compared with

int compare(const Basic &o) const

Comparison operator

Return

0 if equal, -1 , 1 according to string compare

Parameters
  • o: - Object to be compared with

const std::string &get_name() const

Return

name of the Symbol.

vec_basic get_args() const

Returns the list of arguments.

RCP<const Symbol> as_dummy() const