Skip to content
Snippets Groups Projects

Set assumptions for TypedSymbol/cast_func/IntegerFunctionTwoArgsMixIn the SymPy way

Merged Stephan Seitz requested to merge seitz/pystencils:sympy-assumptions-from-dtype into master

After having a nearly week long discussion on assumptions in my SymPy PR, I got some idea of how the assumptions in SymPy are working.

It's interesting that you can use Function.__new__(cls, integer=True) for UndefinedFunctions like Function('f', interger=True) but not for subclassese of Function.

Now things like (2*f.shape[0]).is_integer are working.

Edited by Stephan Seitz

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply