public class ViewMatrixStorage extends Object implements MatrixStorage
MatrixStorage implementation that delegates to parent matrix.| Constructor and Description |
|---|
ViewMatrixStorage() |
ViewMatrixStorage(MatrixStorage dlg,
int rowOff,
int colOff,
int rows,
int cols) |
| Modifier and Type | Method and Description |
|---|---|
int |
accessMode() |
int |
columnOffset() |
int |
columnSize() |
int |
columnsLength() |
double[] |
data()
Gets underlying data, if
StorageOpsMetrics.isArrayBased() returns false this method return
copy of data. |
MatrixStorage |
delegate() |
boolean |
equals(Object o) |
double |
get(int x,
int y) |
int |
hashCode() |
boolean |
isArrayBased()
Checks if implementation is based on Java arrays.
|
boolean |
isDense()
Checks if this implementation should be considered dense so that it explicitly
represents every value.
|
void |
readExternal(ObjectInput in) |
int |
rowOffset() |
int |
rowSize() |
int |
rowsLength() |
void |
set(int x,
int y,
double v) |
int |
storageMode() |
void |
writeExternal(ObjectOutput out) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisNumericdestroypublic ViewMatrixStorage()
public ViewMatrixStorage(MatrixStorage dlg, int rowOff, int colOff, int rows, int cols)
dlg - Backing parent storage.rowOff - Row offset to parent matrix.colOff - Column offset to parent matrix.rows - Amount of rows in the view.cols - Amount of columns in the view.public MatrixStorage delegate()
public int rowOffset()
public int columnOffset()
public int rowsLength()
public int columnsLength()
public double get(int x,
int y)
get in interface MatrixStoragex - Matrix row index.y - Matrix column index.public void set(int x,
int y,
double v)
set in interface MatrixStoragex - Matrix row index.y - Matrix column index.v - Value to set at given row and column.public int columnSize()
columnSize in interface MatrixStoragepublic int rowSize()
rowSize in interface MatrixStoragepublic int storageMode()
storageMode in interface MatrixStorageStorageConstantspublic int accessMode()
accessMode in interface MatrixStorageStorageConstantspublic boolean isArrayBased()
isArrayBased in interface StorageOpsMetricspublic boolean isDense()
isDense in interface StorageOpsMetricspublic double[] data()
StorageOpsMetrics.isArrayBased() returns false this method return
copy of data. The data must be adapted for Blas.data in interface MatrixStorageStorageOpsMetrics.isArrayBased()public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022