Class SortUtils

java.lang.Object
com.linkedin.feathr.common.tensorbuilder.SortUtils

public final class SortUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    swapDouble(int doubleArity, double[] v, int a, int b, double[] arityBuffer)
    Swaps the value blocks in v[] based on a, b and doubleArity.
    static void
    swapFloat(int floatArity, float[] v, int a, int b, float[] arityBuffer)
    Swaps the value blocks in v[] based on a, b and floatArity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • swapFloat

      public static void swapFloat(int floatArity, float[] v, int a, int b, float[] arityBuffer)
      Swaps the value blocks in v[] based on a, b and floatArity.
      Throws:
      IndexOutOfBoundsException - if floatArity is negative
    • swapDouble

      public static void swapDouble(int doubleArity, double[] v, int a, int b, double[] arityBuffer)
      Swaps the value blocks in v[] based on a, b and doubleArity.
      Throws:
      IndexOutOfBoundsException - if doubleArity is negative