pub fn map_pow<E>(base: E, exponents: &[usize]) -> Vec<E>where
E: Elem,Expand description
Equivalent to exponents.map(|exponent| base.pow(exponent)).collect(), but optimized to execute fewer multiplies. Exponents must be sorted and strictly increasing.