Skip to content

Allow thresholding into a range whose size is not a full power of two. #1343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

preusser
Copy link
Collaborator

@preusser preusser commented May 28, 2025

This PR generalizes the thresholding implementation so that it can be instantiated with a set of thresholds that categorizes the inputs into an arbitrary number of buckets that is no longer assumed to be a full power of two.
This adjustment reinterprets the parameter N as the number of thresholds rather than the output precision. This implies corresponding adjustments in the compiler. However, the compiler does currently not exploit this newly gained flexibility.

@preusser preusser marked this pull request as ready for review May 28, 2025 13:42
@preusser preusser requested a review from auphelia May 28, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant