snwagh / falcon-public

Implementation of protocols in Falcon
90 stars 46 forks source link

A simple question about `funDotProduct` function #11

Closed WeiViming closed 3 years ago

WeiViming commented 3 years ago

Hello, @snwagh . I have a question about this function. I guess it is used to compute the dot product between two vectors a and b , i.e. ab=c, where c is a number. However, this function requests c.size() == size. Is something wrong with it? Thank you!

snwagh commented 3 years ago

That is just poor naming on my part, the functionality implements component wise product: c[i] = a[i] b[i]

WeiViming commented 3 years ago

Oh, yes! Thank you for your help!