Skip to content

[poly]: add poly.ntt/intt ops #182

Closed

Description

@j2kun

This would require converting a polynomial.polynomial to an appropriate tensor, and using the encoding attribute of tensor to store the information about which polynomial ring it came from.

Activity

  1. added
    dialect: polynomial
    on Oct 24, 2023
  2. github-actions commented on Jan 12, 2024

    @github-actions

    This issue has 2 outstanding TODOs:

    This comment was autogenerated by todo-backlinks

  3. changed the title [-][poly]: implement poly.ntt/intt[/-] [+][poly]: add poly.ntt/intt ops[/+] on Mar 20, 2024
  4. self-assigned this
    on Mar 20, 2024
  5. j2kun commented on Mar 26, 2024

    @j2kun
    CollaboratorAuthor

    Let's limit the scope of this issue to adding the new ops to the tablegen and ensuring their syntax is how we want them to be. I'm expecting the op to look something like this:

    #cycl_2048 = #polynomial.polynomial<1 + x**1024>
    #ring = #polynomial.ring<cmod=4294967291, ideal=#cycl_2048>
    !poly_ty = !polynomial.polynomial<#ring>
    
    %1 = polynomial.ntt %0 : !poly_ty -> tensor<1024xi32, #ring>
    %2 = polynomial.intt %1 : tensor<1024xi32, #ring> -> !poly_ty
    
  6. added 4 commits that reference this issue on Mar 27, 2024
    d2e78ad
    2e996c8
    cb5c66a
    9df52df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dialect: polynomial

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions