Skip to content
Snippets Groups Projects

Implement sp.Sum, sp.Product

Merged Stephan Seitz requested to merge seitz/pystencils:sum-prod into master

Sum and Product have a indexing variable which is a Atom but not a free symbol. So logic, that defines the undefined symbols in a SympyAssignment should not be atoms(sp.Symbol) but free_symbols. sp.Indexed from the ResolvedFieldAcesses forms an edge case. So we could also use atoms(sp.Symbol).intersection(...free_symbols).

I hope I extracted from my fork all the necessary code to implement this feature.

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
Please register or sign in to reply