modular: add comment

This commit is contained in:
Paul Miller 2023-03-21 06:25:09 +00:00
parent cb61e4f292
commit e2411f7dfd
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B

@ -280,6 +280,7 @@ export function FpPow<T>(f: IField<T>, num: T, power: bigint): T {
return p;
}
// 0 is non-invertible: non-batched version will throw on 0
export function FpInvertBatch<T>(f: IField<T>, nums: T[]): T[] {
const tmp = new Array(nums.length);
// Walk from first to last, multiply them by each other MOD p