Class R064CSR.Builder

All Implemented Interfaces:
Factory2D.Builder<R064CSR>, Mutate1D, Mutate1D.Modifiable<Double>, Mutate2D, Mutate2D.Modifiable<Double>, Structure1D, Structure2D
Enclosing class:
R064CSR

public static final class R064CSR.Builder extends CompressedSparseR064.Builder<R064CSR>
A builder for constructing CSR matrix stores. the dimensions of the matrix are determined by the highest row and column indices set.
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • add

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

      public R064CSR 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
      Overrides:
      reset in class CompressedSparseR064.Builder<R064CSR>
    • set

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