Package gnu.lists

Class Arrays


  • public class Arrays
    extends Object
    • Constructor Detail

      • Arrays

        public Arrays()
    • Method Detail

      • 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)
      • 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)