SEAL
SEAL copied to clipboard
dot product with BFV
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
You need to rotate the encoded vector and perform the sum to achieve "dot-product". Check the paper "Algorithms in HElib"