Skip to content

Small size fft/ntt #2968

@hacatu

Description

@hacatu

What is the problem you want to solve and can not with the current version?
tfhe_ntt::prime32::Plan::try_new and friends are hardcoded to fail if you try to use a length < 32.

Describe the solution you'd like
These functions should let you set up very short transforms.

Describe alternatives you've considered
We can just zero pad up to 32, but this makes debugging code using ntt more difficult for no reason.

Additional context
I'm trying to do a multidimensional ntt on top of the 1D prime32 impl, but it is unnecessarily hard to debug because even in 2D, the minimum transform size now forces us to look at 1024 sized arrays instead of 16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature_requestSomething I need does not exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions