-
Notifications
You must be signed in to change notification settings - Fork 155
[FIX] Unify Zq and Rq Balanced Base-b Decomposition Using Digit-Major Layout #979
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
Conversation
…mposition_zq_digit_major
4964227
to
6210f89
Compare
@@ -322,5 +206,4 @@ static eIcicleError cpu_recompose_from_balanced_digits_PolyRing( | |||
return eIcicleError::SUCCESS; | |||
} | |||
|
|||
REGISTER_BALANCED_DECOMPOSITION_POLYRING_BACKEND( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should REGISTER_BALANCED_DECOMPOSITION_POLYRING_BACKEND
be removed from vec_ops_backend.h
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch. I will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This PR changes the balanced base-b decomposition for Zq scalars to use a digit-major layout, consistent with the existing behavior for Rq polynomials. This enables unified and consolidated implementation across scalar and polynomial types.
Also testing case where input values are small and a user allocates a smaller output buffer for digits.
cuda-backend-branch: yshekel/balanced_decomposition_zq_digit_major_digit