These are chat archives for symengine/symengine

3rd
Jun 2017
Shikhar Jaiswal
@ShikharJ
Jun 03 2017 08:49
@isuruf How can we add binary comparison operators to LLVM? I couldn't make out if there were any functions available for comparisons (atleast none are available in llvm::Intrinsic).
Isuru Fernando
@isuruf
Jun 03 2017 09:41
@ShikharJ, I'll have to read the docs. Note that, Eq(x, y) is not really useful, but Piecewise((Eq(x, y), x), (True, y)) is
Shikhar Jaiswal
@ShikharJ
Jun 03 2017 09:52
@isuruf Regarding symengine/symengine.py#148 , what should we do exactly? Return a different object from applyfunc rather than the present in-place modification?
Isuru Fernando
@isuruf
Jun 03 2017 09:52
applyfunc doesn't do in-place modification
Shikhar Jaiswal
@ShikharJ
Jun 03 2017 09:54
Yeah. Sorry for that. What did you mean by fixing applyfunc then?
Isuru Fernando
@isuruf
Jun 03 2017 09:54
Issue is with calling _set right?
Don't use _set in applyfunc
Shikhar Jaiswal
@ShikharJ
Jun 03 2017 10:44
Yes. But the thing is that all three functions _set, __setitem__ and set are currently overloaded to raise an error.
Isuru Fernando
@isuruf
Jun 03 2017 12:02
Those are python methods. You can still use the C++ methods