SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

dot product with BFV

Open Cocchi34 opened this issue 3 years ago • 1 comments

Hi! I'm new to the library, so I'm trying implementing dot product between two vector (one ciphertext with one plaintext) using BFV scheme. After doing multiply_plain_inplace, how can I sum the value in the resulting vector?

I've tried using add_many but occurs the following error: no viable conversion from 'seal::Ciphertext' to 'const std::vector<Ciphertext>'

Ideas? Thanks

Cocchi34 avatar Sep 23 '22 07:09 Cocchi34

You need to rotate the encoded vector and perform the sum to achieve "dot-product". Check the paper "Algorithms in HElib"

fionser avatar Sep 29 '22 01:09 fionser