Skip to content

Commit

Permalink
return ctIn when n=1, batchSize=k*N
Browse files Browse the repository at this point in the history
  • Loading branch information
lehugueni committed Nov 21, 2024
1 parent 141c402 commit b67c72b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schemes/bgv/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,13 @@ func (eval Evaluator) InnerSum(ctIn *rlwe.Ciphertext, batchSize, n int, opOut *r
l := n * batchSize

if l%N == 0 {
if n == 1 {
if ctIn != opOut {
opOut.Copy(ctIn)
}
return
}

if err = eval.Evaluator.InnerSum(ctIn, batchSize, n/2, opOut); err != nil {
return
}
Expand Down

0 comments on commit b67c72b

Please sign in to comment.