fixed the bug in PolyEval (#214)

* added *Pooled to the polyEval cases
This commit is contained in:
Azam Soleimanian
2024-10-22 09:05:24 +02:00
committed by GitHub
parent 333bc7718b
commit 303e581cf2
4 changed files with 88 additions and 17 deletions

View File

@@ -117,6 +117,10 @@ func PolyEval(vecs []SmartVector, x field.Element, p ...mempool.MemPool) (result
anyReg = true
v := *casted
accumulateReg(resReg, v, xPow)
case *Pooled: // e.g. from product
anyReg = true
v := casted.Regular
accumulateReg(resReg, v, xPow)
case *PaddedCircularWindow:
// treat it as a regular, reusing the buffer
anyReg = true