1 #include <symengine/matrices/matrix_symbol.h>
8 hash_t seed = SYMENGINE_MATRIXSYMBOL;
15 return (is_a<MatrixSymbol>(o)
16 && name_ == down_cast<const MatrixSymbol &>(o).name_);
21 SYMENGINE_ASSERT(is_a<MatrixSymbol>(o));
23 const MatrixSymbol &s = down_cast<const MatrixSymbol &>(o);
26 return name_ < s.name_ ? -1 : 1;
29 RCP<const MatrixExpr> matrix_symbol(
const std::string &name)
31 return make_rcp<const MatrixSymbol>(name);
The lowest unit of symbolic representation.
hash_t __hash__() const override
bool __eq__(const Basic &o) const override
Test equality.
int compare(const Basic &o) const override
Main namespace for SymEngine package.
void hash_combine(hash_t &seed, const T &v)