eval_inner_product: Inner product of two encrypted vectors

View source: R/methods-eval-backlog.R

eval_inner_productR Documentation

Inner product of two encrypted vectors

Description

Multiplies the two operands slot by slot and sums the first batch_size slots; the result is in the first slot. Needs the relinearization key and the summation keys (eval_sum_key_gen()).

Usage

eval_inner_product(ct1, ct2, batch_size)

Arguments

ct1

A Ciphertext.

ct2

A Ciphertext or a Plaintext.

batch_size

Integer; the number of slots to sum.

Value

A Ciphertext.


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.