Skip to content
Snippets Groups Projects

Clarify semantics of fancy integer division functions.

Merged Daniel Bauer requested to merge hyteg/pystencils:bauerd/fancy-int-div into v2.0-dev
1 unresolved thread

Closes #88 (closed).

The goal of these functions is to provide fast, fp-free functions for semi-complicated semantics on positive integers (The old implementation did not behave sensibly for negative input). This MR clarifies the names and docstrings of the fancy integer divisions to make it clear that negative input is not always expected. Furthermore, the implementation is changed such that no remainders or conditionals must be evaluated.

The old names are still available but issue deprecation warnings.

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