Class SparseMutator2D<N extends Comparable<N>, M extends BasicMatrix<N,M> >
java.lang.Object
org.ojalgo.matrix.SparseMutator2D<N,M>
- All Implemented Interfaces:
Factory2D.Builder<M>, Mutate1D, Mutate2D, Structure1D, Structure2D
- Direct Known Subclasses:
MatrixC128.SparseReceiver, MatrixH256.SparseReceiver, MatrixQ128.SparseReceiver, MatrixR032.SparseReceiver, MatrixR064.SparseReceiver, MatrixR128.SparseReceiver
abstract class SparseMutator2D<N extends Comparable<N>, M extends BasicMatrix<N,M>>
extends Object
implements Factory2D.Builder<M>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.SortableNested classes/interfaces inherited from interface Mutate2D
Mutate2D.Exchangeable, Mutate2D.Fillable<N>, Mutate2D.Mixable<N>, Mutate2D.Modifiable<N>, Mutate2D.ModifiableReceiver<N>, Mutate2D.Receiver<N>Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback Nested classes/interfaces inherited from interface Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S,B>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()longcount()count() == countRows() * countColumns()longOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.longOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.intint(package private) abstract Minstantiate(MatrixStore<N> store) voidreset()Reset this mutable structure to some standard (all zeros) initial state.voidset(int row, int col, double value) voidset(long index, double value) voidset(long row, long col, Comparable<?> value) intsize()size() == getRowDim() * getColDim()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Mutate2D
set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface Structure2D
firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow
-
Field Details
-
myDelegate
-
mySafe
private boolean mySafe
-
-
Constructor Details
-
SparseMutator2D
SparseMutator2D(SparseStore.Builder<N> delegate)
-
-
Method Details
-
build
- Specified by:
buildin interfaceFactory2D.Builder<N extends Comparable<N>>
-
count
public long count()Description copied from interface:Structure2Dcount() == countRows() * countColumns()- Specified by:
countin interfaceStructure1D- Specified by:
countin interfaceStructure2D
-
countColumns
public long countColumns()Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumnsin interfaceStructure2D- Returns:
- The number of columns
-
countRows
public long countRows()Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRowsin interfaceStructure2D- Returns:
- The number of rows
-
getColDim
public int getColDim()- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getRowDim
public int getRowDim()- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
reset
-
set
-
set
-
set
-
size
public int size()Description copied from interface:Structure2Dsize() == getRowDim() * getColDim()- Specified by:
sizein interfaceStructure1D- Specified by:
sizein interfaceStructure2D
-
instantiate
-