public interface TwoDimensionalFloatAccess extends TwoDimensionalFloatReadAccess, TwoDimensionalAccess<java.lang.Float>
TwoDimensionalFloatReadAccess.Base| Modifier and Type | Field and Description |
|---|---|
static TwoDimensionalFloatAccess |
EMPTY
Empty 2dimensional float access.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
changeAllValues(FloatOperator1 operator)
Change all values by applying an operator.
|
default void |
changeValueAt(FloatOperator1 operator,
int ix,
int iy)
Change the value at the given indexes.
|
default void |
fillValuesByIndex(IntToFloatFunction2 setter)
Set all values depending on their indexes.
|
default void |
setElementAt(java.lang.Float element,
int ix,
int iy)
Set the element at the given indexes.
|
void |
setValueAt(float value,
int ix,
int iy)
Set the value at the given indexes.
|
default OneDimensionalFloatAccess |
subAtX(int ix)
Get a 1-dimensional view of the row at the given X index.
|
default OneDimensionalFloatAccess |
subAtY(int iy)
Get a 1-dimensional view of the column at the given X index.
|
default TwoDimensionalFloatAccess |
transposed()
Get a transposed view of this 2-dimensional read access.
|
asBase, getElementAt, getValueAt, singletonchangeAll, changeAll, createConstant, createIndexed, createNulled, createSupplied, empty, fillByIndex, setElement, zeroX, zeroYequal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, sizeX, sizeY, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIteratorchange, setAll, setFrom, setFrom, setFromempty, linearizedstatic final TwoDimensionalFloatAccess EMPTY
void setValueAt(float value,
int ix,
int iy)
value - value to setix - X indexiy - Y indexdefault void changeValueAt(@NotNull FloatOperator1 operator, int ix, int iy)
operator - operator to apply to the valueix - X indexiy - Y indexdefault void changeAllValues(@NotNull FloatOperator1 operator)
operator - operator to applydefault void fillValuesByIndex(@NotNull IntToFloatFunction2 setter)
setter - setter which provides the value to set for each index combinationdefault void setElementAt(@NotNull java.lang.Float element, int ix, int iy)
TwoDimensionalAccesssetElementAt in interface TwoDimensionalAccess<java.lang.Float>element - element to setix - index in X direction from 0 (included) to TwoDimensionalReadAccess.sizeX() (excluded)iy - index in Y direction from 0 (included) to TwoDimensionalReadAccess.sizeY() (excluded)@NotNull default OneDimensionalFloatAccess subAtX(int ix)
TwoDimensionalReadAccesssubAtX in interface TwoDimensionalAccess<java.lang.Float>subAtX in interface TwoDimensionalFloatReadAccesssubAtX in interface TwoDimensionalReadAccess<java.lang.Float>ix - X indexix@NotNull default OneDimensionalFloatAccess subAtY(int iy)
TwoDimensionalReadAccesssubAtY in interface TwoDimensionalAccess<java.lang.Float>subAtY in interface TwoDimensionalFloatReadAccesssubAtY in interface TwoDimensionalReadAccess<java.lang.Float>iy - Y indexiy@NotNull default TwoDimensionalFloatAccess transposed()
TwoDimensionalReadAccesstransposed in interface TwoDimensionalAccess<java.lang.Float>transposed in interface TwoDimensionalFloatReadAccesstransposed in interface TwoDimensionalReadAccess<java.lang.Float>