Skip to main content

powi

Function powi 

Source
pub fn powi(base: f64, times: i32) -> f64
Expand description

Integer power by squaring. Matches LIBSVM’s powi(base, times).

For negative times, returns 1.0 (same as the C code, which only iterates while t > 0).