klyn.math.Math.atan2
method

    public static atan2<LEFT_TYPE extends AbstractNumber, RIGHT_TYPE extends AbstractNumber>(y as NDArray<LEFT_TYPE>, x as RIGHT_TYPE) as NDArray<Double>:

Description

Returns the element-wise `atan2(y, x)` between an array and a scalar.

This overload delegates to the native vectorized NDArray kernel.

    import klyn.math

    y = NDArray<Double>.fromList([1.0, -1.0])
    print(Math.atan2(y, 1.0))