klyn.math.Math.log2
method
public static log2<NUMBER_TYPE extends AbstractNumber>(values as NDArray<NUMBER_TYPE>) as NDArray<Double>:
Description
Returns the element-wise base-2 logarithm of an array. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

values = NDArray<Double>.fromList([1.0, 8.0])
print(Math.log2(values))