klyn.math.Math.hypot
method

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

Description

Returns the element-wise Euclidean distance between an array and a scalar.

This overload delegates to the native vectorized NDArray kernel.

    import klyn.math

    values = NDArray<Double>.fromList([3.0, 4.0])
    print(Math.hypot(values, 4.0))