Class SortUtils
java.lang.Object
com.linkedin.feathr.common.tensorbuilder.SortUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidswapDouble(int doubleArity, double[] v, int a, int b, double[] arityBuffer) Swaps the value blocks in v[] based on a, b and doubleArity.static voidswapFloat(int floatArity, float[] v, int a, int b, float[] arityBuffer) Swaps the value blocks in v[] based on a, b and floatArity.
-
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- iffloatArityis 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- ifdoubleArityis negative
-