public native exp2() as NDArray<Double>
Returns the element-wise power of two.
The result is materialized as NDArray<Double>.
NDArray<Double>
a = NDArray<Double>.fromList([1.0, 4.0]) print(a.exp2())