Class CompressedSparseR064.Builder<I extends CompressedSparseR064>
java.lang.Object
org.ojalgo.matrix.store.CompressedSparseR064.Builder<I>
- All Implemented Interfaces:
Factory2D.Builder<I>, Mutate1D, Mutate1D.Modifiable<Double>, Mutate2D, Mutate2D.Modifiable<Double>, Structure1D, Structure2D
- Direct Known Subclasses:
R064CSC.Builder, R064CSR.Builder
- Enclosing class:
CompressedSparseR064
abstract static class CompressedSparseR064.Builder<I extends CompressedSparseR064>
extends Object
implements Factory2D.Builder<I>, Mutate2D.Modifiable<Double>
-
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 TypeMethodDescriptionfinal voidadd(long row, long col, double addend) final voidadd(long row, long col, Comparable<?> addend) final intfinal intfinal voidmodifyOne(long row, long col, UnaryFunction<Double> modifier) Will throw UnsupportedOperationException!voidreset()Reset this mutable structure to some standard (all zeros) initial state.final voidset(long row, long col, Comparable<?> value) (package private) final voidupdate(int row, int col) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Factory2D.Builder
buildMethods inherited from interface Mutate1D.Modifiable
add, add, add, add, add, modifyAll, modifyMatching, modifyMatching, modifyRangeMethods 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, set, set, setMethods inherited from interface Mutate2D.Modifiable
add, add, add, add, add, add, add, add, add, add, add, add, add, add, modifyColumn, modifyColumn, modifyDiagonal, modifyDiagonal, modifyMatchingInColumns, modifyMatchingInColumns, modifyMatchingInRows, modifyMatchingInRows, modifyOne, modifyRow, modifyRowMethods inherited from interface Structure2D
count, countColumns, countRows, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myColDim
private int myColDim -
myRowDim
private int myRowDim
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
add
- Specified by:
addin interfaceMutate2D.Modifiable<I extends CompressedSparseR064>
-
add
public final void add(long row, long col, double addend) - Specified by:
addin interfaceMutate2D.Modifiable<I extends CompressedSparseR064>
-
getColDim
public final int getColDim()- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getRowDim
public final int getRowDim()- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
modifyOne
Will throw UnsupportedOperationException!- Specified by:
modifyOnein interfaceMutate2D.Modifiable<I extends CompressedSparseR064>
-
reset
-
set
-
update
final void update(int row, int col)
-