Function nearestPlane

  • Solve approximate CVP using Babai's nearest plane algorithm.

    Parameters

    • v: number[]

      Vector to reduce.

    • basis: number[][]

      LLL basis to reduce with.

    • Optional dual: number[][]

      Optional precalculated geometric duals of the orthogonalized basis.

    Returns Monzo

    The reduced vector.