Loading...
Searching...
No Matches
SymEngine::Equality Class Reference
+ Inheritance diagram for SymEngine::Equality:
+ Collaboration diagram for SymEngine::Equality:

Public Member Functions

virtual void accept (Visitor &v) const
 
virtual void accept (EvalRealDoubleVisitorFinal &v) const
 
 Equality (const RCP< const Basic > &lhs, const RCP< const Basic > &rhs)
 
virtual RCP< const Basiccreate (const RCP< const Basic > &lhs, const RCP< const Basic > &rhs) const
 Method to construct classes with canonicalization. More...
 
virtual RCP< const Booleanlogical_not () const
 
- Public Member Functions inherited from SymEngine::Relational
 Relational (const RCP< const Basic > &lhs, const RCP< const Basic > &rhs)
 Constructor. More...
 
virtual bool is_canonical (const RCP< const Basic > &lhs, const RCP< const Basic > &rhs) const
 
- Public Member Functions inherited from SymEngine::TwoArgBasic< Boolean >
 TwoArgBasic (const RCP< const Basic > &a, const RCP< const Basic > &b)
 b in TwoArgBasic(a, b) More...
 
hash_t __hash__ () const
 
RCP< const Basicget_arg1 () const
 
RCP< const Basicget_arg2 () const
 
virtual vec_basic get_args () const
 
virtual RCP< const Basiccreate (const RCP< const Basic > &a, const RCP< const Basic > &b) const=0
 Method to construct classes with canonicalization. More...
 
RCP< const Basiccreate (const vec_basic &b) const
 
virtual bool __eq__ (const Basic &o) const
 
virtual int compare (const Basic &o) const
 Structural equality comparator. More...
 
virtual RCP< const Booleanlogical_not () const
 
- Public Member Functions inherited from SymEngine::Basic
TypeID get_type_code () const
 
 Basic ()
 Constructor. More...
 
 Basic (const Basic &)=delete
 Delete the copy constructor and assignment.
 
Basicoperator= (const Basic &)=delete
 Assignment operator in continuation with above.
 
 Basic (Basic &&)=delete
 Delete the move constructor and assignment.
 
Basicoperator= (Basic &&)=delete
 Assignment operator in continuation with above.
 
virtual hash_t __hash__ () const =0
 
hash_t hash () const
 
virtual bool __eq__ (const Basic &o) const =0
 Test equality. More...
 
bool __neq__ (const Basic &o) const
 true if this is not equal to o. More...
 
int __cmp__ (const Basic &o) const
 Comparison operator. More...
 
virtual int compare (const Basic &o) const =0
 
std::string __str__ () const
 
std::string dumps () const
 Returns a string of the instance serialized. More...
 
RCP< const Basicsubs (const map_basic_basic &subs_dict) const
 Substitutes 'subs_dict' into 'self'. More...
 
RCP< const Basicxreplace (const map_basic_basic &subs_dict) const
 
virtual RCP< const Basicexpand_as_exp () const
 expands the special function in terms of exp function More...
 
virtual vec_basic get_args () const =0
 Returns the list of arguments. More...
 
virtual void accept (Visitor &v) const =0
 
virtual void accept (EvalRealDoubleVisitorFinal &v) const =0
 
RCP< const Basicdiff (const RCP< const Symbol > &x, bool cache=true) const
 
- Public Member Functions inherited from SymEngine::EnableRCPFromThis< Basic >
RCP< Basicrcp_from_this ()
 Get RCP<T> pointer to self (it will cast the pointer to T) More...
 
RCP< const Basicrcp_from_this () const
 Get RCP<const T> pointer to self (it will cast the pointer to const T) More...
 
RCP< const T2 > rcp_from_this_cast () const
 Get RCP<T2> pointer to self (it will cast the pointer to T2) More...
 
unsigned int use_count () const
 

Static Public Attributes

static const TypeID type_code_id = SYMENGINE_EQUALITY
 Class for operator ==. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SymEngine::Basic
static RCP< const Basicloads (const std::string &)
 Creates an instance of a serialized string. More...
 
- Data Fields inherited from SymEngine::Basic
TypeID type_code_
 

Detailed Description

Definition at line 188 of file logic.h.

Constructor & Destructor Documentation

◆ Equality()

SymEngine::Equality::Equality ( const RCP< const Basic > &  lhs,
const RCP< const Basic > &  rhs 
)

Definition at line 635 of file logic.cpp.

636 : Relational(lhs, rhs)
637{
638 SYMENGINE_ASSIGN_TYPEID();
639 SYMENGINE_ASSERT(is_canonical(lhs, rhs));
640}
Relational(const RCP< const Basic > &lhs, const RCP< const Basic > &rhs)
Constructor.
Definition: logic.cpp:618
virtual bool is_canonical(const RCP< const Basic > &lhs, const RCP< const Basic > &rhs) const
Definition: logic.cpp:623

Member Function Documentation

◆ accept() [1/2]

virtual void SymEngine::Equality::accept ( EvalRealDoubleVisitorFinal v) const
virtual

Implements SymEngine::Basic.

◆ accept() [2/2]

virtual void SymEngine::Equality::accept ( Visitor v) const
virtual

Implements SymEngine::Basic.

◆ create()

RCP< const Basic > SymEngine::Equality::create ( const RCP< const Basic > &  a,
const RCP< const Basic > &  b 
) const
virtual

Method to construct classes with canonicalization.

Implements SymEngine::TwoArgBasic< Boolean >.

Definition at line 642 of file logic.cpp.

644{
645 return Eq(lhs, rhs);
646}
RCP< const Boolean > Eq(const RCP< const Basic > &lhs)
Returns the canonicalized Equality object from a single argument.
Definition: logic.cpp:653

◆ logical_not()

RCP< const Boolean > SymEngine::Equality::logical_not ( ) const
virtual

Reimplemented from SymEngine::Boolean.

Definition at line 648 of file logic.cpp.

649{
650 return make_rcp<const Unequality>(get_arg1(), get_arg2());
651}
RCP< const Basic > get_arg2() const
Definition: functions.h:96
RCP< const Basic > get_arg1() const
Definition: functions.h:91

Field Documentation

◆ type_code_id

const TypeID SymEngine::Equality::type_code_id = SYMENGINE_EQUALITY
static

Class for operator ==.

Type_code_id shared by all instances

Definition at line 192 of file logic.h.


The documentation for this class was generated from the following files: