public static interface MatrixStore.ElementsConsumer<N extends java.lang.Number> extends Consumer2D<Access2D<N>>, Access2D.Fillable<N>, Access2D.Modifiable<N>
Modifier and Type | Method and Description |
---|---|
default void |
accept(Access2D<N> supplied) |
default void |
acceptFrom(MatrixStore.ElementsSupplier<N> supplier) |
default long |
count()
count() == countRows() * countColumns()
|
long |
countColumns() |
long |
countRows() |
default void |
fillAll(N value) |
default void |
fillAll(NullaryFunction<N> supplier) |
void |
fillByMultiplying(Access1D<N> left,
Access1D<N> right) |
default void |
fillColumn(long row,
long column,
N value) |
default void |
fillColumn(long row,
long column,
NullaryFunction<N> supplier) |
default void |
fillDiagonal(long row,
long column,
N value) |
default void |
fillDiagonal(long row,
long column,
NullaryFunction<N> supplier) |
default void |
fillRow(long row,
long column,
N value) |
default void |
fillRow(long row,
long column,
NullaryFunction<N> supplier) |
default void |
modifyAll(UnaryFunction<N> function) |
default void |
modifyColumn(long row,
long column,
UnaryFunction<N> function) |
default void |
modifyDiagonal(long row,
long column,
UnaryFunction<N> function) |
default void |
modifyRow(long row,
long column,
UnaryFunction<N> function) |
MatrixStore.ElementsConsumer<N> |
regionByColumns(int... columns) |
MatrixStore.ElementsConsumer<N> |
regionByLimits(int rowLimit,
int columnLimit) |
MatrixStore.ElementsConsumer<N> |
regionByOffsets(int rowOffset,
int columnOffset) |
MatrixStore.ElementsConsumer<N> |
regionByRows(int... rows) |
isAcceptable
fillColumn, fillDiagonal, fillOne, fillOne, fillOne, fillOne, fillRange, fillRange, fillRow
modifyOne, modifyOne, modifyRange
default void acceptFrom(MatrixStore.ElementsSupplier<N> supplier)
default void fillAll(N value)
fillAll
in interface Access1D.Fillable<N extends java.lang.Number>
default void fillAll(NullaryFunction<N> supplier)
fillAll
in interface Access1D.Fillable<N extends java.lang.Number>
default void fillColumn(long row, long column, N value)
fillColumn
in interface Access2D.Fillable<N extends java.lang.Number>
default void fillColumn(long row, long column, NullaryFunction<N> supplier)
fillColumn
in interface Access2D.Fillable<N extends java.lang.Number>
default void fillDiagonal(long row, long column, N value)
fillDiagonal
in interface Access2D.Fillable<N extends java.lang.Number>
default void fillDiagonal(long row, long column, NullaryFunction<N> supplier)
fillDiagonal
in interface Access2D.Fillable<N extends java.lang.Number>
default void fillRow(long row, long column, N value)
fillRow
in interface Access2D.Fillable<N extends java.lang.Number>
default void fillRow(long row, long column, NullaryFunction<N> supplier)
fillRow
in interface Access2D.Fillable<N extends java.lang.Number>
default void modifyAll(UnaryFunction<N> function)
modifyAll
in interface Access1D.Modifiable<N extends java.lang.Number>
default void modifyColumn(long row, long column, UnaryFunction<N> function)
modifyColumn
in interface Access2D.Modifiable<N extends java.lang.Number>
default void modifyDiagonal(long row, long column, UnaryFunction<N> function)
modifyDiagonal
in interface Access2D.Modifiable<N extends java.lang.Number>
default void modifyRow(long row, long column, UnaryFunction<N> function)
modifyRow
in interface Access2D.Modifiable<N extends java.lang.Number>
MatrixStore.ElementsConsumer<N> regionByColumns(int... columns)
MatrixStore.ElementsConsumer<N> regionByLimits(int rowLimit, int columnLimit)
MatrixStore.ElementsConsumer<N> regionByOffsets(int rowOffset, int columnOffset)
MatrixStore.ElementsConsumer<N> regionByRows(int... rows)
default long count()
long countColumns()
long countRows()