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