Class RowsSupplier.SingleView<N extends Comparable<N>>

java.lang.Object
org.ojalgo.structure.Access2D.RowView<N>
org.ojalgo.matrix.store.RowsSupplier.SingleView<N>
All Implemented Interfaces:
Comparable<Access2D.RowView<N>>, Iterable<Access2D.RowView<N>>, Iterator<Access2D.RowView<N>>, Spliterator<Access2D.RowView<N>>, Access1D<N>, Access1D.Collectable<N,Mutate1D>, Access2D.Collectable<N,PhysicalStore<N>>, Structure1D, Structure2D
Enclosing class:
RowsSupplier<N extends Comparable<N>>

public static final class RowsSupplier.SingleView<N extends Comparable<N>> extends Access2D.RowView<N> implements Access2D.Collectable<N,PhysicalStore<N>>
  • Field Details

  • Constructor Details

  • Method Details

    • countColumns

      public long countColumns()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Specified by:
      countColumns in interface Structure2D
      Returns:
      The number of columns
    • countRows

      public long countRows()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Specified by:
      countRows in interface Structure2D
      Returns:
      The number of rows
    • elements

      public ElementView1D<N,?> elements()
      Description copied from interface: Access1D
      Returns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so).
      Specified by:
      elements in interface Access1D<N extends Comparable<N>>
    • getColDim

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

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

      public ElementView1D<N,?> nonzeros()
      Description copied from interface: Access1D
      Similar to Access1D.elements() but avoids elements that are structurally known to be zero. (That does not eliminate all zero-values from this view.) With an arbitrary (dense) unstructured implementation the Access1D.nonzeros() and Access1D.elements() methods do the same thing! Only some specific implementations are able to actually exploit structure/sparsity to view fewer elements.
      Specified by:
      nonzeros in interface Access1D<N extends Comparable<N>>
    • supplyTo

      public void supplyTo(PhysicalStore<N> receiver)
      Specified by:
      supplyTo in interface Access2D.Collectable<N extends Comparable<N>,PhysicalStore<N extends Comparable<N>>>
    • getCurrent

      private SparseArray<N> getCurrent()