Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-164

Port "sortInPlace" from Commons Math

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • 1.0
    • arrays

    Description

      Method is currently in utility class MathArrays.

      Proposed API:

      public enum Sort implements BiConsumer<double[],double[][]> {
          /** Sort in ascending order. */
          ASCENDING((o1, o2) -> Double.compare(o1.key(), o2.key())),
          /** Sort in descending order. */
          DESCENDING(ASCENDING.comparator.reversed());
      
          // ...
      
          @Override
          public void accept(double[] x,
                             double[]... yList) {
              // ...
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              erans Gilles Sadowski
              erans Gilles Sadowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: