Constructors
Properties
Readonly
elementSize
elementSize: number
Readonly
modulus
modulus: bigint
Methods
add
- add(x: bigint, y: bigint): bigint
Returns bigint
div
- div(x: bigint, y: bigint): bigint
Returns bigint
evalPolyAt
- evalPolyAt(p: Vector, x: bigint): bigint
Returns bigint
exp
- exp(base: bigint, exponent: bigint): bigint
Parameters
- base: bigint
- exponent: bigint
Returns bigint
getPowerSeries
- getPowerSeries(seed: bigint, length: number): Vector
Parameters
- seed: bigint
- length: number
getRootOfUnity
- getRootOfUnity(order: number): bigint
Returns bigint
inv
- inv(a: bigint): bigint
Returns bigint
mod
- mod(value: bigint): bigint
Returns bigint
mul
- mul(x: bigint, y: bigint): bigint
Returns bigint
newVectorFrom
- newVectorFrom(values: bigint[]): Vector
rand
- rand(): bigint
Returns bigint
sub
- sub(x: bigint, y: bigint): bigint
Returns bigint