Class ArrayR032

    • Field Detail

      • data

        public final float[] data
    • Constructor Detail

      • ArrayR032

        protected ArrayR032​(float[] data)
        Array not copied! No checking!
      • ArrayR032

        protected ArrayR032​(int size)
    • Method Detail

      • make

        public static ArrayR032 make​(int size)
      • wrap

        public static ArrayR032 wrap​(float... data)
      • axpy

        public void axpy​(double a,
                         Mutate1D.Modifiable<?> y)
        Description copied from interface: Access1D
        Will calculate y = y + a x, will add "a" times "this" to "y"
        Parameters:
        a - The scale
        y - The "vector" to update
      • byteValue

        public byte byteValue​(int index)
        Specified by:
        byteValue in interface Access1D<java.lang.Double>
        Specified by:
        byteValue in class PlainArray<java.lang.Double>
      • dot

        public double dot​(Access1D<?> vector)
        Description copied from interface: Access1D
        Will calculate and return the dot product of this 1D-structure and another input 1D-vector.
        Parameters:
        vector - Another 1D-structure
        Returns:
        The dot product
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class BasicArray<java.lang.Double>
      • fillMatching

        public void fillMatching​(Access1D<?> values)
        Description copied from interface: Mutate1D.Fillable

        Will fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:

        this(i) = values(i)
      • fillMatching

        public void fillMatching​(Access1D<java.lang.Double> left,
                                 BinaryFunction<java.lang.Double> function,
                                 Access1D<java.lang.Double> right)
      • fillMatching

        public void fillMatching​(UnaryFunction<java.lang.Double> function,
                                 Access1D<java.lang.Double> arguments)
      • get

        public final java.lang.Double get​(int index)
        Specified by:
        get in class PlainArray<java.lang.Double>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class BasicArray<java.lang.Double>
      • intValue

        public int intValue​(int index)
        Specified by:
        intValue in interface Access1D<java.lang.Double>
        Overrides:
        intValue in class PlainArray<java.lang.Double>
      • reset

        public final void reset()
        Description copied from interface: Mutate1D
        Reset this mutable structure to some standard (all zeros) initial state. It must still be usuable after this call, and the structure/size/shape must not change.
      • set

        public final void set​(int index,
                              double value)
        Specified by:
        set in interface Mutate1D
        Specified by:
        set in class PlainArray<java.lang.Double>
      • set

        public final void set​(int index,
                              float value)
        Specified by:
        set in interface Mutate1D
        Overrides:
        set in class PlainArray<java.lang.Double>
      • set

        public void set​(int index,
                        long value)
        Specified by:
        set in interface Mutate1D
        Specified by:
        set in class PlainArray<java.lang.Double>
      • add

        protected void add​(int index,
                           java.lang.Comparable<?> addend)
        Specified by:
        add in class PlainArray<java.lang.Double>
      • add

        protected void add​(int index,
                           double addend)
        Specified by:
        add in class PlainArray<java.lang.Double>
      • add

        protected void add​(int index,
                           float addend)
        Overrides:
        add in class PlainArray<java.lang.Double>
      • copyOfData

        protected final float[] copyOfData()
      • exchange

        protected final void exchange​(int firstA,
                                      int firstB,
                                      int step,
                                      int count)
        Specified by:
        exchange in class PlainArray<java.lang.Double>
      • fill

        protected final void fill​(int first,
                                  int limit,
                                  int step,
                                  java.lang.Double value)
        Specified by:
        fill in class PlainArray<java.lang.Double>
      • fill

        protected final void fill​(int first,
                                  int limit,
                                  int step,
                                  NullaryFunction<?> supplier)
        Specified by:
        fill in class PlainArray<java.lang.Double>
      • fillOne

        protected void fillOne​(int index,
                               Access1D<?> values,
                               long valueIndex)
        Specified by:
        fillOne in class PlainArray<java.lang.Double>
      • fillOne

        protected void fillOne​(int index,
                               java.lang.Double value)
        Specified by:
        fillOne in class PlainArray<java.lang.Double>
      • indexOfLargest

        protected final int indexOfLargest​(int first,
                                           int limit,
                                           int step)
        Specified by:
        indexOfLargest in class PlainArray<java.lang.Double>
      • modify

        protected final void modify​(int first,
                                    int limit,
                                    int step,
                                    Access1D<java.lang.Double> left,
                                    BinaryFunction<java.lang.Double> function)
        Specified by:
        modify in class PlainArray<java.lang.Double>
      • modify

        protected final void modify​(int first,
                                    int limit,
                                    int step,
                                    BinaryFunction<java.lang.Double> function,
                                    Access1D<java.lang.Double> right)
        Specified by:
        modify in class PlainArray<java.lang.Double>
      • modify

        protected final void modify​(int first,
                                    int limit,
                                    int step,
                                    UnaryFunction<java.lang.Double> function)
        Specified by:
        modify in class PlainArray<java.lang.Double>
      • modifyOne

        protected final void modifyOne​(int index,
                                       UnaryFunction<java.lang.Double> modifier)
        Specified by:
        modifyOne in class PlainArray<java.lang.Double>
      • searchAscending

        protected final int searchAscending​(java.lang.Double number)
        Specified by:
        searchAscending in class PlainArray<java.lang.Double>
      • set

        protected final void set​(int index,
                                 java.lang.Comparable<?> value)
        Specified by:
        set in class PlainArray<java.lang.Double>
      • visit

        protected final void visit​(int first,
                                   int limit,
                                   int step,
                                   VoidFunction<java.lang.Double> visitor)
        Specified by:
        visit in class PlainArray<java.lang.Double>
      • visitOne

        protected void visitOne​(int index,
                                VoidFunction<java.lang.Double> visitor)
        Specified by:
        visitOne in class PlainArray<java.lang.Double>
      • modify

        void modify​(long extIndex,
                    int intIndex,
                    Access1D<java.lang.Double> left,
                    BinaryFunction<java.lang.Double> function)
        Specified by:
        modify in class DenseArray<java.lang.Double>
      • modify

        void modify​(long extIndex,
                    int intIndex,
                    BinaryFunction<java.lang.Double> function,
                    Access1D<java.lang.Double> right)
        Specified by:
        modify in class DenseArray<java.lang.Double>
      • modify

        void modify​(long extIndex,
                    int intIndex,
                    UnaryFunction<java.lang.Double> function)
        Specified by:
        modify in class DenseArray<java.lang.Double>