Why is there no math.pow() function?
The pow function should be uses as an overloaded method of the SIMD struct. However, if you really need a dedicated function for that, here is an unrecommended way to do so:
from builtin import simd
fn main() raises:
var base = SIMD[DType.float32, 4](-3.0, -2.0, 2.0, 3.0)
var exp = SIMD[DType.float32, 4](3.0, 3.0, 3.0, 3.0)
var res = simd._powf(base, exp)
print(res) # SIMD[DType.float32, 4](-27.0, -8.0, 8.0, 27.0)
Where is the simd._powf() function documented?
Ah, now i see there is a builtin/math pow() function. For the sake of completeness, what about adding a similar function to the math package as well?