Skip to content
fn

gpu_pow

::mlx::core::array gpu_pow(const ::mlx::core::array & a, const ::mlx::core::array & b)

a ** b element-wise and broadcast, b a tensor (or a a scalar base). float32, float16, and bfloat16 run the kernel above; integer and complex dtypes stay mx::power (exact integer powers by squaring, and the complex principal branch).