/** * Returns the `p-2 norm` squared, i.e. the square of the `Euclidean norm` of * the given array of bigints. * * @param p an array of bigints; can represent an array of polynomial * coefficients * * @doc */ function bP2NormSquared(p: bigint[]): bigint { let s = 0n; for (let i=0; i