Public Member Functions | |
Expression () | |
Plain constructor of Expression. | |
template<class T > | |
Expression (T n, typename std::enable_if< std::is_integral< T >::value >::type *=nullptr) | |
Construct Expression from integral types. | |
template<class T > | |
Expression (T n, typename std::enable_if< std::is_floating_point< T >::value >::type *=nullptr) | |
Construct Expression from floating point types. | |
template<class T > | |
Expression (std::complex< T > n, typename std::enable_if< std::is_floating_point< T >::value >::type *=nullptr) | |
Construct Expression from std::complex<> types. | |
Expression (const integer_class &n) | |
Expression (const rational_class &n) | |
Expression (RCP< const Basic > &&o) | |
Expression (const RCP< const Basic > &o) | |
Expression (const std::string &s) | |
Expression (const Expression &)=default | |
Construct Expression from Expression. | |
Expression (Expression &&other) SYMENGINE_NOEXCEPT | |
Construct Expression from reference to Expression. | |
Expression & | operator= (const Expression &)=default |
Overload assignment operator. | |
Expression & | operator= (Expression &&other) SYMENGINE_NOEXCEPT |
Overload assignment operator for reference. | |
virtual | ~Expression () SYMENGINE_NOEXCEPT |
Destructor of Expression. | |
Expression & | operator+= (const Expression &other) |
Overload addition and assignment(+=) | |
Expression & | operator+= (const RCP< const Basic > &other) |
operator const RCP< const Basic > & () const | |
Expression | diff (const RCP< const Symbol > &x, bool cache=true) const |
Differentiation. | |
Expression | diff (const RCP< const Basic > &x, bool cache=true) const |
Differentiation. | |
Expression | subs (const map_basic_basic &subs_map) const |
Substitution. | |
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
operator T () const | |
Evaluation to a floating point type. | |
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
operator std::complex< T > () const | |
Evaluation to a complex floating point type. | |
operator const Basic & () const | |
Expression | operator- () const |
Overload unary negative. | |
Expression & | operator-= (const Expression &other) |
Overload subtraction and assignment(-=) | |
Expression & | operator-= (const RCP< const Basic > &other) |
Expression & | operator*= (const Expression &other) |
Overload multiplication and assignment (*=) | |
Expression & | operator*= (const RCP< const Basic > &other) |
Expression & | operator/= (const Expression &other) |
Overload Division and assignment (/=) | |
Expression & | operator/= (const RCP< const Basic > &other) |
bool | operator== (const Expression &other) const |
Overload check equality (==) | |
bool | operator== (const RCP< const Basic > &other) const |
bool | operator!= (const Expression &other) const |
Overload check not equal (!=) | |
bool | operator!= (const RCP< const Basic > &other) const |
const RCP< const Basic > & | get_basic () const |
Method to get Basic from Expression. | |
Private Attributes | |
RCP< const Basic > | m_basic |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Expression &expr) |
Overload stream operator. | |
Expression | operator+ (const Expression &a, const Expression &b) |
Overload addition. | |
Expression | operator+ (const RCP< const Basic > &a, const Expression &b) |
Expression | operator+ (const Expression &a, const RCP< const Basic > &b) |
Expression | operator- (const Expression &a, const Expression &b) |
Overload subtraction. | |
Expression | operator- (const RCP< const Basic > &a, const Expression &b) |
Expression | operator- (const Expression &a, const RCP< const Basic > &b) |
Expression | operator* (const Expression &a, const Expression &b) |
Overload multiplication. | |
Expression | operator* (const RCP< const Basic > &a, const Expression &b) |
Expression | operator* (const Expression &a, const RCP< const Basic > &b) |
Expression | operator/ (const Expression &a, const Expression &b) |
Overload Division. | |
Expression | operator/ (const RCP< const Basic > &a, const Expression &b) |
Expression | operator/ (const Expression &a, const RCP< const Basic > &b) |
Definition at line 28 of file expression.h.
|
inline |
Plain constructor of Expression.
Definition at line 35 of file expression.h.
|
inline |
Construct Expression from integral types.
Definition at line 38 of file expression.h.
|
inline |
Construct Expression from floating point types.
Definition at line 46 of file expression.h.
|
inline |
Construct Expression from std::complex<> types.
Definition at line 54 of file expression.h.
|
inline |
Definition at line 61 of file expression.h.
|
inline |
Definition at line 63 of file expression.h.
|
inline |
Definition at line 65 of file expression.h.
|
inline |
Definition at line 67 of file expression.h.
SymEngine::Expression::Expression | ( | const std::string & | s | ) |
Definition at line 19 of file expression.cpp.
|
inline |
Construct Expression from reference to Expression.
Definition at line 74 of file expression.h.
|
inlinevirtual |
|
inline |
Differentiation.
Definition at line 143 of file expression.h.
|
inline |
Differentiation.
Definition at line 138 of file expression.h.
|
inline |
Method to get Basic from Expression.
Definition at line 259 of file expression.h.
|
inline |
Definition at line 168 of file expression.h.
|
inline |
Definition at line 133 of file expression.h.
|
inlineexplicit |
Evaluation to a complex floating point type.
Definition at line 164 of file expression.h.
|
inlineexplicit |
Evaluation to a floating point type.
Definition at line 156 of file expression.h.
|
inline |
Overload check not equal (!=)
Definition at line 249 of file expression.h.
|
inline |
Definition at line 253 of file expression.h.
|
inline |
Overload multiplication and assignment (*=)
Definition at line 204 of file expression.h.
|
inline |
Definition at line 209 of file expression.h.
|
inline |
Overload addition and assignment(+=)
Definition at line 110 of file expression.h.
|
inline |
Definition at line 115 of file expression.h.
|
inline |
Overload unary negative.
Definition at line 173 of file expression.h.
|
inline |
Overload subtraction and assignment(-=)
Definition at line 180 of file expression.h.
|
inline |
Definition at line 185 of file expression.h.
|
inline |
Overload Division and assignment (/=)
Definition at line 228 of file expression.h.
|
inline |
Definition at line 233 of file expression.h.
|
inline |
Overload assignment operator for reference.
Definition at line 81 of file expression.h.
|
inline |
Overload check equality (==)
Definition at line 239 of file expression.h.
|
inline |
Definition at line 243 of file expression.h.
|
inline |
Substitution.
Definition at line 148 of file expression.h.
|
friend |
Overload multiplication.
Definition at line 191 of file expression.h.
|
friend |
Definition at line 199 of file expression.h.
|
friend |
Definition at line 195 of file expression.h.
|
friend |
Overload addition.
Definition at line 97 of file expression.h.
|
friend |
Definition at line 105 of file expression.h.
|
friend |
Definition at line 101 of file expression.h.
|
friend |
Overload subtraction.
Definition at line 121 of file expression.h.
|
friend |
Definition at line 129 of file expression.h.
|
friend |
Definition at line 125 of file expression.h.
|
friend |
Overload Division.
Definition at line 215 of file expression.h.
|
friend |
Definition at line 223 of file expression.h.
|
friend |
Definition at line 219 of file expression.h.
|
friend |
Overload stream operator.
Definition at line 91 of file expression.h.
|
private |
Definition at line 31 of file expression.h.