Skip to main content

integer_pow

Function integer_pow 

Source
pub fn integer_pow<T: Element>(x: T, y: i32) -> T
Expand description

x^y for an integer exponent, by repeated squaring in the same order as JAX’s lowering of integer_pow (which fixes the rounding of floats). Negative exponents take the reciprocal at the end.