Package gnu.lists

Class Arrays

java.lang.Object
gnu.lists.Arrays

public class Arrays extends Object
  • Constructor Details

    • Arrays

      public Arrays()
  • Method Details

    • rowMajorToEffectiveIndex

      public static int rowMajorToEffectiveIndex(Array arr, int index)
    • getRowMajor

      public static <E> E getRowMajor(Array<E> arr, int index)
    • hashCode

      public static int hashCode(Array arr)
    • asIntArrayOrNull

      public static Array<Integer> asIntArrayOrNull(Object obj)
    • incrementIndexes

      public static void incrementIndexes(int[] indexes, Array<?> arr)
    • getDimensions

      public static int[] getDimensions(Array<?> arr)
    • getLowBounds

      public static int[] getLowBounds(Array<?> arr)
    • fill

      public static <E> void fill(Array<E> arr, E value)
    • copy

      public static <E> void copy(Array<E> dst, Array<E> src)
    • simpleCopy

      public static <E> GeneralArray<E> simpleCopy(Array<E> arr, boolean writable)
    • flattenCopy

      public static <E> SimpleVector<E> flattenCopy(Array<E> arr, boolean writable)