public class MatrixView<N extends Number> extends Object implements Access2D<N>, Iterable<MatrixView<N>>, Iterator<MatrixView<N>>, Comparable<MatrixView<N>>
Access2D.Aggregatable<N extends Number>, Access2D.Collectable<N extends Number,R extends Mutate2D.Receiver<N>>, Access2D.Elements, Access2D.ElementView<N extends Number>, Access2D.IndexOf, Access2D.Sliceable<N extends Number>, Access2D.Visitable<N extends Number>Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,B extends Structure2D.Logical<S,?>>, 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 | Constructor and Description |
|---|---|
protected |
MatrixView(AccessAnyD<N> access) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MatrixView<N> other) |
long |
count()
count() == countRows() * countColumns()
|
long |
countColumns() |
long |
countRows() |
double |
doubleValue(long row,
long col)
Extracts one element of this matrix as a double.
|
long |
estimateSize() |
N |
get(long row,
long col) |
boolean |
hasNext() |
boolean |
hasPrevious() |
long |
index() |
MatrixView<N> |
iterator() |
MatrixView<N> |
next() |
MatrixView<N> |
previous() |
void |
remove() |
protected void |
setIndex(long matrix) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCollectable2D, asPrimitive2D, byteValue, byteValue, columns, doubleValue, elements, equals, floatValue, floatValue, get, intValue, intValue, longValue, longValue, newPrimitiveColumnCollectable, newPrimitiveRowCollectable, rows, shortValue, shortValue, toRawCopy2D, toString, wrap, wrapcolumn, 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, rowasCollectable1D, asPrimitive1D, axpy, dot, equals, hashCode, nonzeros, supplyTo, toRawCopy1D, toString, wrap, wrap, wrapindex, loopAll, loopMatching, loopRange, mapper, sizeforEach, spliteratorforEachRemainingprotected MatrixView(AccessAnyD<N> access)
public int compareTo(MatrixView<N> other)
compareTo in interface Comparable<MatrixView<N extends Number>>public long count()
Structure2Dcount in interface Structure1Dcount in interface Structure2Dpublic long countColumns()
countColumns in interface Structure2Dpublic long countRows()
countRows in interface Structure2Dpublic double doubleValue(long row,
long col)
Access2DdoubleValue in interface Access2D<N extends Number>row - A row index.col - A column index.public long estimateSize()
public boolean hasNext()
hasNext in interface Iterator<MatrixView<N extends Number>>public boolean hasPrevious()
public long index()
public MatrixView<N> iterator()
iterator in interface Iterable<MatrixView<N extends Number>>public MatrixView<N> next()
next in interface Iterator<MatrixView<N extends Number>>public MatrixView<N> previous()
public final void remove()
remove in interface Iterator<MatrixView<N extends Number>>protected void setIndex(long matrix)
Copyright © 2019 Optimatika. All rights reserved.