Module ojalgo

Class R064CSC.Builder

java.lang.Object
org.ojalgo.matrix.store.R064CSC.Builder
All Implemented Interfaces:
Factory2D.Builder<R064CSC>, Mutate1D, Mutate1D.Modifiable<Double>, Mutate2D, Mutate2D.Modifiable<Double>, Structure1D, Structure2D
Enclosing class:
R064CSC

public static final class R064CSC.Builder extends Object
A builder for constructing R064CSR instances. The dimensions of the matrix are dynamically adjusted as elements are added.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • add

      public void add(int row, int col, double addend)
    • build

      public R064CSC build()
    • reset

      public void reset()
      Description copied from interface: Mutate1D
      Reset this mutable structure to some standard (all zeros) initial state. It must still be usuable after this call, and the structure/size/shape must not change.
      Specified by:
      reset in interface Mutate1D
    • set

      public void set(int row, int col, double value)
    • add

      public final void add(long row, long col, Comparable<?> addend)
      Specified by:
      add in interface Mutate2D.Modifiable<I extends org.ojalgo.matrix.store.CompressedSparseR064>
    • add

      public final void add(long row, long col, double addend)
      Specified by:
      add in interface Mutate2D.Modifiable<I extends org.ojalgo.matrix.store.CompressedSparseR064>
    • getColDim

      public final int getColDim()
      Specified by:
      getColDim in interface Structure2D
      Returns:
      The number of columns
    • getRowDim

      public final int getRowDim()
      Specified by:
      getRowDim in interface Structure2D
      Returns:
      The number of rows
    • modifyOne

      public final void modifyOne(long row, long col, UnaryFunction<Double> modifier)
      Will throw UnsupportedOperationException!
      Specified by:
      modifyOne in interface Mutate2D.Modifiable<I extends org.ojalgo.matrix.store.CompressedSparseR064>
    • set

      public final void set(long row, long col, Comparable<?> value)
      Specified by:
      set in interface Mutate2D