jax.lax.pow#
- jax.lax.pow(x, y)[source]#
Elementwise power: \(x^y\).
This function lowers directly to the stablehlo.pow operation, along with a stablehlo.convert when the argument dtypes do not match.
- Parameters:
x (ArrayLike) – Input array giving the base value. Must have floating or complex type.
y (ArrayLike) – Input array giving the exponent value. Must have integer, floating, or complex type. Its dtype will be cast to that of
x.dtypeif necessary. If neitherxnoryis a scalar, thenxandymust have the same number of dimensions and be broadcast-compatible.
- Returns:
An array of the same dtype as
xcontaining the elementwise power.- Return type:
See also
jax.lax.integer_pow(): Elementwise power whereyis a static integer.