xen-dev-utils
    Preparing search index...

    Function fractionalNorm

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

      Parameters

      • array: ProtoFractionalMonzo

        The array to measure.

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

        Type of measurement. (Euclidean norm can be obtained using L2 and calling .sqrt() on the result.)

      Returns Fraction

      The length of the vector.