klyn.math.Math.pow
method
public static pow<LEFT_TYPE extends AbstractNumber, RIGHT_TYPE extends AbstractNumber>(value as NDArray<LEFT_TYPE>, power as NDArray<RIGHT_TYPE>) as NDArray<Double>:
Description
Raises each element of an array to the matching powers of another array. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

values = NDArray<Int>.fromList([2, 3])
powers = NDArray<Int>.fromList([3, 2])
print(Math.pow(values, powers))