Class Interval

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::Interval : public SymEngine::Set

Public Functions

hash_t __hash__() const

Calculates the hash of the given SymEngine class. Use Basic.hash() which gives a cached version of the hash.

Return

64-bit integer value for the hash

bool __eq__(const Basic &o) const

true if this is equal to o. Deprecated: Use eq(const Basic &a, const Basic &b) non-member method

int compare(const Basic &o) const

Returns -1, 0, 1 for this < o, this == o, this > o. This method is used when you want to sort things like x+y+z into canonical order. This function assumes that o is the same type as this. Use __cmp__ if you want general comparison.

Interval(const RCP<const Number> &start, const RCP<const Number> &end, const bool left_open = false, const bool right_open = false)
RCP<const Set> open() const
RCP<const Set> close() const
RCP<const Set> Lopen() const
RCP<const Set> Ropen() const
RCP<const Set> set_union(const RCP<const Set> &o) const
RCP<const Set> set_intersection(const RCP<const Set> &o) const
RCP<const Set> set_complement(const RCP<const Set> &o) const
RCP<const Boolean> contains(const RCP<const Basic> &a) const
vec_basic get_args() const

Returns the list of arguments.

const RCP<const Number> &get_start() const
const RCP<const Number> &get_end() const
const bool &get_left_open() const
const bool &get_right_open() const

Public Static Functions

bool is_canonical(const RCP<const Number> &start, const RCP<const Number> &end, bool left_open, bool right_open)