public class SparseMatrixStorage extends Object implements MatrixStorage, StorageConstants
COLUMN_STORAGE_MODE, RANDOM_ACCESS_MODE, ROW_STORAGE_MODE, SEQUENTIAL_ACCESS_MODE, UNKNOWN_STORAGE_MODE| Constructor and Description |
|---|
SparseMatrixStorage() |
SparseMatrixStorage(int rows,
int cols,
int acsMode,
int stoMode) |
| Modifier and Type | Method and Description |
|---|---|
int |
accessMode() |
int |
columnSize() |
void |
compute(int row,
int col,
IgniteTriFunction<Integer,Integer,Double,Double> f) |
double[] |
data()
Gets underlying data, if
StorageOpsMetrics.isArrayBased() returns false this method return
copy of data. |
boolean |
equals(Object o) |
double |
get(int x,
int y) |
int |
hashCode() |
it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap<it.unimi.dsi.fastutil.ints.IntSet> |
indexesMap() |
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 |
rowSize() |
void |
set(int x,
int y,
double v) |
int |
storageMode() |
void |
writeExternal(ObjectOutput out) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisNumericdestroyassertAccessMode, assertStorageModepublic SparseMatrixStorage()
public SparseMatrixStorage(int rows,
int cols,
int acsMode,
int stoMode)
public int storageMode()
storageMode in interface MatrixStorageStorageConstantspublic int accessMode()
accessMode in interface MatrixStorageStorageConstantspublic 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 void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic boolean isDense()
isDense in interface StorageOpsMetricspublic boolean isArrayBased()
isArrayBased 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 compute(int row,
int col,
IgniteTriFunction<Integer,Integer,Double,Double> f)
public it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap<it.unimi.dsi.fastutil.ints.IntSet> indexesMap()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022