You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Is there a way to transmit data as a list which contains all summands? Something like this:
Or is this not possible? Thank you.
The text was updated successfully, but these errors were encountered: