Interface Mutate2D.Modifiable<N extends Comparable<N>>

All Superinterfaces:
Mutate1D.Modifiable<N>, Structure1D, Structure2D
All Known Subinterfaces:
DecompositionStore<N>, Mutate2D.ModifiableReceiver<N>, PhysicalStore<N>, TransformableRegion<N>
All Known Implementing Classes:
Array2D, DenseMutator2D, GenericStore, MatrixC128.DenseReceiver, MatrixH256.DenseReceiver, MatrixQ128.DenseReceiver, MatrixR032.DenseReceiver, MatrixR064.DenseReceiver, MatrixR128.DenseReceiver, R032Store, R064Store, RawStore, SparseStore, Subregion2D, Subregion2D.ColumnsRegion, Subregion2D.LimitRegion, Subregion2D.OffsetRegion, Subregion2D.RowsRegion, Subregion2D.SynchronizedRegion, Subregion2D.TransposedRegion, Subregion2D.WrapperRegion
Enclosing interface:
Mutate2D

public static interface Mutate2D.Modifiable<N extends Comparable<N>> extends Structure2D, Mutate1D.Modifiable<N>
  • Method Details

    • add

      default void add(long index, byte addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long index, Comparable<?> addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long index, double addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long index, float addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long index, int addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long index, long addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • add

      default void add(long row, long col, byte addend)
    • add

      void add(long row, long col, Comparable<?> addend)
    • add

      void add(long row, long col, double addend)
    • add

      default void add(long row, long col, float addend)
    • add

      default void add(long row, long col, int addend)
    • add

      default void add(long row, long col, long addend)
    • add

      default void add(long row, long col, short addend)
    • add

      default void add(long index, short addend)
      Specified by:
      add in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • modifyColumn

      default void modifyColumn(long row, long col, UnaryFunction<N> modifier)
    • modifyColumn

      default void modifyColumn(long col, UnaryFunction<N> modifier)
    • modifyDiagonal

      default void modifyDiagonal(long row, long col, UnaryFunction<N> modifier)
    • modifyDiagonal

      default void modifyDiagonal(UnaryFunction<N> modifier)
    • modifyMatchingInColumns

      default void modifyMatchingInColumns(Access1D<N> left, BinaryFunction<N> function)
      "Matching In Columns" refers to that the supplied, left, data structure will be treated as a column, matching the columns of this structure. Matching columns have the same number of rows.

      This method will modify all elements of this structure by applying the modifier function to each of them. The left/first argument to the modifier function is taken from the supplied data structure, and the row-index determines which element.

    • modifyMatchingInColumns

      default void modifyMatchingInColumns(BinaryFunction<N> function, Access1D<N> right)
      Same as modifyMatchingInColumns(Access1D, BinaryFunction) but with the arguments to the modifier function swapped.
    • modifyMatchingInRows

      default void modifyMatchingInRows(Access1D<N> left, BinaryFunction<N> function)
      Same as modifyMatchingInColumns(Access1D, BinaryFunction) but now the supplied left data structure is treated as a row. (Matching rows have the same number of columns.)
    • modifyMatchingInRows

      default void modifyMatchingInRows(BinaryFunction<N> function, Access1D<N> right)
      Same as modifyMatchingInRows(Access1D, BinaryFunction) but with the arguments to the modifier function swapped.
    • modifyOne

      void modifyOne(long row, long col, UnaryFunction<N> modifier)
    • modifyOne

      default void modifyOne(long index, UnaryFunction<N> modifier)
      Specified by:
      modifyOne in interface Mutate1D.Modifiable<N extends Comparable<N>>
    • modifyRow

      default void modifyRow(long row, long col, UnaryFunction<N> modifier)
    • modifyRow

      default void modifyRow(long row, UnaryFunction<N> modifier)