public static pow<LEFT_TYPE extends AbstractNumber, RIGHT_TYPE extends AbstractNumber>(value as NDArray<LEFT_TYPE>, power as RIGHT_TYPE) as NDArray<Double>:
Raises each element of an array to the specified scalar power.
This overload delegates to the native vectorized NDArray kernel.
import klyn.math values = NDArray<Int>.fromList([2, 3, 4]) print(Math.pow(values, 2))