Skip to content
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

List of floating-point numbers as input possible (CKKS)? #20

Open
n0mead opened this issue Nov 12, 2021 · 0 comments
Open

List of floating-point numbers as input possible (CKKS)? #20

n0mead opened this issue Nov 12, 2021 · 0 comments

Comments

@n0mead
Copy link

n0mead commented Nov 12, 2021

Hi,

I want to do a simple sum calculation of some floating-point numbers, but I just want to use an List as input.
I know that we can do something like this to sum up a specific amount of numbers:

sum = EvaProgram('Sum', vec_size=4096)
with sum:
    x = Input('x')
    y = Input('y')
    z = Input('z')
    Output('sum', x+y+z)

Is there a way to transmit data as a list which contains all summands? Something like this:

sum = EvaProgram('Sum', vec_size=4096)
with sum:
    summands = Input('summands')

    result = 0
    for summand in summands:
            result = result + summand

    Output('sum', result)

Or is this not possible? Thank you.

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

No branches or pull requests

1 participant