klyn.math.NDArray.pow
method
public pow(value as T) as NDArray<Double>:
Description

Raises each element to the given scalar power.

The result is materialized as NDArray<Double>.

a = NDArray<Int>.fromList([2, 3, 4])
print(a.pow(2))  # [4.0, 9.0, 16.0]