Modifier and Type | Field and Description |
---|---|
int |
col0Incl |
int |
col1Excl |
protected boolean |
readOnly |
Matrix |
rootMatrix
The concrete matrix that is viewed by this MatrixView instance.
|
int |
row0Incl |
int |
row1Excl |
Constructor and Description |
---|
Slice(Matrix rootMatrix,
int row0Incl,
int row1Excl,
int col0Incl,
int col1Excl,
boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
protected int |
colRoot2Slice(int rootColIndex) |
protected int |
colSlice2Root(int sliceColIndex) |
boolean |
equals(java.lang.Object obj) |
double |
get(int row,
int col) |
int |
getCol0Incl() |
int |
getCol1Excl() |
Matrix |
getRootMatrix() |
int |
getRow0Incl() |
int |
getRow1Excl() |
int |
hashCode() |
boolean |
isReadOnly() |
int |
nCols() |
int |
nRows() |
protected int |
rowRoot2Slice(int rootRowIndex)
Translate a row index relative to the root to a row index
relative to the slice
Note: assumes bounds have already been checked.
|
protected int |
rowSlice2Root(int sliceRowIndex)
Translate a row index relative to the slice to a row index
relative to the rootMatrix matrix
Note: assumes bounds have already been checked.
|
void |
set(int row,
int col,
double value) |
Matrix |
slice(int row0Incl,
int row1Excl,
int col0Incl,
int col1Excl,
boolean makeSubSliceReadOnly) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, add, addInPlace, addInPlace, addInPlace, cholesky, col, createEmpty, div, divInPlace, get, inverse, isVector, lu, mul, mul, mul, mul, mulInPlace, nEntries, nonZeroEntries, operator_add, operator_add, operator_add, operator_divide, operator_divideAssign, operator_minus, operator_minus, operator_minus, operator_multiply, operator_multiply, operator_multiply, operator_multiply, operator_multiplyAssign, operator_plus, operator_plus, operator_plus, operator_remove, operator_remove, operator_remove, readOnlyView, row, set, slice, sub, sub, sub, subInPlace, subInPlace, subInPlace, transpose
public final Matrix rootMatrix
public final int row0Incl
public final int row1Excl
public final int col0Incl
public final int col1Excl
protected final boolean readOnly
public Slice(Matrix rootMatrix, int row0Incl, int row1Excl, int col0Incl, int col1Excl, boolean readOnly)
protected int rowSlice2Root(int sliceRowIndex)
protected int colSlice2Root(int sliceColIndex)
protected int rowRoot2Slice(int rootRowIndex)
protected int colRoot2Slice(int rootColIndex)
public Matrix slice(int row0Incl, int row1Excl, int col0Incl, int col1Excl, boolean makeSubSliceReadOnly)
@Pure public int hashCode()
hashCode
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public Matrix getRootMatrix()
@Pure public int getRow0Incl()
@Pure public int getRow1Excl()
@Pure public int getCol0Incl()
@Pure public int getCol1Excl()
@Pure public boolean isReadOnly()