Index Mathematics Conjectures nbv lettuce Widgets

vec_poly_scalar_mul

stdlib/polynomial/vec_poly_scalar_mul.nbv

vec_poly_scalar_mul(static N, lhs, rhs)

multiple a vector of polynomials by a single polynomial. Polynomials should be in eval form

first argument should be the degree of the polynomial ring

Precompiles
assert_eq!, chunks_flat_map!, clone!, div_exact!, len!
Used by
bdlop/bdlop_linear_nizk_verify

Source

# multiple a vector of polynomials by a single polynomial.
# Polynomials should be in eval form
#
# first argument should be the degree of the polynomial ring
(static N, lhs, rhs)

assert_eq! N, (len! rhs)

# asserts that N evenly divides len of lhs
static iter_len = div_exact! (len! lhs), N

chunks_flat_map! lhs, N, l_poly {
  l_poly * (clone! rhs)
}