public final class RowsSupplier<N extends Comparable<N>> extends Object implements Access2D<N>, ElementsSupplier<N>
Access2D.Aggregatable<N extends Comparable<N>>, Access2D.Collectable<N extends Comparable<N>,R extends Mutate2D.Receiver<N>>, Access2D.Elements, Access2D.ElementView<N extends Comparable<N>>, Access2D.IndexOf, Access2D.Sliceable<N extends Comparable<N>>, Access2D.Visitable<N extends Comparable<N>>
Structure2D.IntRowColumn, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.RowColumnCallback, Structure2D.RowColumnKey<R,C>, Structure2D.RowColumnMapper<R,C>
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Method and Description |
---|---|
SparseArray<N> |
addRow() |
void |
addRows(int numberToAdd) |
long |
countColumns() |
long |
countRows() |
double |
doubleValue(long row,
long col)
Extracts one element of this matrix as a double.
|
N |
get(long row,
long col) |
SparseArray<N> |
getRow(int index) |
PhysicalStore.Factory<N,?> |
physical() |
SparseArray<N> |
removeRow(int index) |
RowView<N> |
rows() |
RowsSupplier<N> |
selectRows(int[] indices) |
void |
supplyTo(TransformableRegion<N> receiver) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCollectable2D, asPrimitive2D, byteValue, byteValue, columns, doubleValue, elements, equals, floatValue, floatValue, get, intValue, intValue, longValue, longValue, newPrimitiveColumnCollectable, newPrimitiveRowCollectable, shortValue, shortValue, toRawCopy2D, toString, wrap, wrap
asCollectable1D, asPrimitive1D, axpy, dot, equals, hashCode, nonzeros, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
get, operateOnAll, operateOnAny, operateOnColumns, operateOnMatching, operateOnMatching, operateOnRows, transpose
operateOnAll, operateOnAll, operateOnAll, operateOnAll, operateOnAll
collect
column, column, column, column, column, count, index, index, isEmpty, isFat, isScalar, isSquare, isTall, isVector, loopAll, loopColumn, loopColumn, loopDiagonal, loopMatching, loopRow, loopRow, mapperOf, row, row, row, row, row
index, loopAll, loopMatching, loopRange, mapper, size, toIntIndexes
public SparseArray<N> addRow()
public void addRows(int numberToAdd)
public long countColumns()
countColumns
in interface Structure2D
public long countRows()
countRows
in interface Structure2D
public double doubleValue(long row, long col)
Access2D
doubleValue
in interface Access2D<N extends Comparable<N>>
row
- A row index.col
- A column index.public N get(long row, long col)
get
in interface Access2D<N extends Comparable<N>>
public SparseArray<N> getRow(int index)
public PhysicalStore.Factory<N,?> physical()
physical
in interface ElementsSupplier<N extends Comparable<N>>
public SparseArray<N> removeRow(int index)
public RowsSupplier<N> selectRows(int[] indices)
public void supplyTo(TransformableRegion<N> receiver)
supplyTo
in interface Access2D.Collectable<N extends Comparable<N>,TransformableRegion<N extends Comparable<N>>>
Copyright © 2019 Optimatika. All rights reserved.