public native sqrt() as NDArray<Double>
Returns the element-wise square root.
The result is materialized as NDArray<Double>.
NDArray<Double>
a = NDArray<Int>.fromList([1, 4, 9]) print(a.sqrt()) # [1.0, 2.0, 3.0]