xen-dev-utils
    Preparing search index...

    Function norm

    • Calculate the norm (vector length) of an array of real numbers.

      Parameters

      • array: NumberArray

        The array to measure.

      • type: "L2" | "taxicab" | "maximum" | "euclidean" = 'euclidean'

        Type of measurement.

      Returns number

      The length of the vector.