Function poly

Source
pub fn poly<F: PolyNum>(x: F, coeffs: &[F]) -> F
Expand description

Evaluate a polynomial for a slice of coefficients. May not be monomorphized.

To not be monomorphized means this function’s codegen may be used for any number of coefficients, and therefore contains branches. It will be faster to use poly_array instead if possible.