Skip to content

Commit db46907

Browse files
committed
Import cse in top module
1 parent 374d69c commit db46907

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

symengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
LessThan, StrictGreaterThan, StrictLessThan, Eq, Ne, Ge, Le,
1212
Gt, Lt, golden_ratio as GoldenRatio, catalan as Catalan,
1313
eulergamma as EulerGamma, Dummy, perfect_power, integer_nthroot,
14-
isprime, sqrt_mod, Expr)
14+
isprime, sqrt_mod, Expr, cse)
1515
from .utilities import var, symbols
1616
from .functions import *
1717

symengine/lib/pywrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ hash_t PyFunction::__hash__() const {
261261
bool PyFunction::__eq__(const Basic &o) const {
262262
if (is_a<PyFunction>(o) and
263263
pyfunction_class_->__eq__(*static_cast<const PyFunction &>(o).get_pyfunction_class()) and
264-
unified_eq(arg_, static_cast<const PyFunction &>(o).arg_))
264+
unified_eq(get_vec(), static_cast<const PyFunction &>(o).get_vec()))
265265
return true;
266266
return false;
267267
}
@@ -271,7 +271,7 @@ int PyFunction::compare(const Basic &o) const {
271271
const PyFunction &s = static_cast<const PyFunction &>(o);
272272
int cmp = pyfunction_class_->compare(*s.get_pyfunction_class());
273273
if (cmp != 0) return cmp;
274-
return unified_compare(arg_, s.arg_);
274+
return unified_compare(get_vec(), s.get_vec());
275275
}
276276

277277
} // SymEngine

0 commit comments

Comments
 (0)