Poly class

A degree-255 polynomial over Z_q. Coefficients stored in [0, q).

Constructors

Poly([List<int>? coeffs])

Properties

coeffs → List<int>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Poly other) → void
checkNorm(int bound) → bool
Check infinity norm bound (centered).
copy() → Poly
freeze() → void
Freeze coefficients into [0, q).
fromNtt() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointwiseMul(Poly other) → void
Pointwise product in NTT domain (this *= other).
reduce() → void
Reduce all coefficients mod q into [0, q).
sub(Poly other) → void
toNtt() → void
toString() → String
A string representation of this object.
inherited
zero() → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited