Class BasicArray<N extends java.lang.Comparable<N>>

    • Field Detail

      • myFactory

        private final ArrayFactory<N extends java.lang.Comparable<N>,​?> myFactory
    • Constructor Detail

      • BasicArray

        private BasicArray()
      • BasicArray

        protected BasicArray​(ArrayFactory<N,​?> factory)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getMathType

        public final MathType getMathType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isPrimitive

        public final boolean isPrimitive()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • exchange

        protected void exchange​(long firstA,
                                long firstB,
                                long step,
                                long count)
      • fill

        protected void fill​(long first,
                            long limit,
                            long step,
                            N value)
      • fill

        protected void fill​(long first,
                            long limit,
                            long step,
                            NullaryFunction<?> supplier)
      • indexOfLargest

        protected long indexOfLargest​(long first,
                                      long limit,
                                      long step)
      • modify

        protected void modify​(long first,
                              long limit,
                              long step,
                              Access1D<N> left,
                              BinaryFunction<N> function)
      • modify

        protected void modify​(long first,
                              long limit,
                              long step,
                              BinaryFunction<N> function,
                              Access1D<N> right)
      • modify

        protected void modify​(long first,
                              long limit,
                              long step,
                              UnaryFunction<N> function)
      • visit

        protected void visit​(long first,
                             long limit,
                             long step,
                             VoidFunction<N> visitor)
      • wrapInArray1D

        protected final Array1D<N> wrapInArray1D()
        A utility facade that conveniently/consistently presents the BasicArray as a one-dimensional array. Note that you will modify the actual array by accessing it through this facade.
      • wrapInArray2D

        protected final Array2D<N> wrapInArray2D​(long structure)
        A utility facade that conveniently/consistently presents the BasicArray as a two-dimensional array. Note that you will modify the actual array by accessing it through this facade.
      • wrapInArrayAnyD

        protected final ArrayAnyD<N> wrapInArrayAnyD​(long[] structure)
        A utility facade that conveniently/consistently presents the BasicArray as a multi-dimensional array. Note that you will modify the actual array by accessing it through this facade.