mat_poly_mul_vec
stdlib/polynomial/mat_poly_mul_vec.nbv
mat_poly_mul_vec(static N, mat, vec)
multiply a matrix of polynomials by a vector of polys all inputs should be in eval representation
- Calls
slice_to_end- Precompiles
assert_eq!,chunks_flat_map!,chunks_sum_map!,clone!,len!,static_assert_const!- Used by
bdlop/bdlop_linear_nizk_verify
Source
# multiply a matrix of polynomials by a vector of polys
# all inputs should be in eval representation
(static N, mat, vec)
static mat_height = static_assert_const! mat[0]
static mat_width = static_assert_const! mat[1]
assert_eq! mat_width * N, len! vec
assert_eq! (len! mat), 2 + N * mat_height * mat_width
chunks_flat_map! slice_to_end(mat, 2), N * mat_width, mat_row {
chunks_sum_map! (mat_row * clone! vec), N
}