mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
return ctIn when n=1, batchSize=k*N
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user