2 #include <symengine/symengine_casts.h>
8 : name_{name} {SYMENGINE_ASSIGN_TYPEID()}
20 return name_ == down_cast<const Symbol &>(o).name_;
26 SYMENGINE_ASSERT(is_a<Symbol>(o))
27 const Symbol &s = down_cast<const Symbol &>(o);
33 RCP<const Symbol> Symbol::as_dummy()
const
42 SYMENGINE_ASSIGN_TYPEID()
49 SYMENGINE_ASSIGN_TYPEID()
66 and (
dummy_index == down_cast<const Dummy &>(o).get_index()));
72 SYMENGINE_ASSERT(is_a<Dummy>(o))
73 const Dummy &s = down_cast<const Dummy &>(o);
The lowest unit of symbolic representation.
Dummy()
Dummy Constructors.
int compare(const Basic &o) const override
hash_t __hash__() const override
size_t dummy_index
Dummy index.
static size_t count_
Dummy count.
bool __eq__(const Basic &o) const override
const std::string & get_name() const
Symbol(const std::string &name)
Symbol Constructor.
bool __eq__(const Basic &o) const override
std::string name_
name of Symbol
int compare(const Basic &o) const override
hash_t __hash__() const override
Main namespace for SymEngine package.
RCP< const Dummy > dummy()
inline version to return Dummy
void hash_combine(hash_t &seed, const T &v)
std::string to_string(const T &value)
workaround for MinGW bug