|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.multicorebsp.util.Matrix<DataType> com.multicorebsp.util.SparseMatrix<DataType,MatrixType>
public abstract class SparseMatrix<DataType extends MatrixData<DataType>,MatrixType extends SparseMatrix<DataType,MatrixType>>
General sparse matrix representation.
Field Summary | |
---|---|
DataType |
data
Holds the nonzero values |
int |
n
Matrix column size (always constant in a sparse matrix) |
Fields inherited from class com.multicorebsp.util.Matrix |
---|
m, nz |
Constructor Summary | |
---|---|
|
SparseMatrix(DataType _data)
Base constructor. |
protected |
SparseMatrix(DataType _data,
int _m,
int _n,
int _nz)
Deep copy constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
abstract CRS<DataType> |
toCRS()
Warning: returns current matrix if this matrix already is CRS. |
abstract ICRS<DataType> |
toICRS()
Warning: returns current matrix if this matrix already is CRS. |
abstract TS<DataType> |
toTS()
Warning: returns current matrix if this matrix already is TS. |
Methods inherited from class com.multicorebsp.util.Matrix |
---|
removeAndAddDuplicates |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.multicorebsp.core.CompulsaryCloneable |
---|
safeClone |
Field Detail |
---|
public int n
public DataType extends MatrixData<DataType> data
Constructor Detail |
---|
public SparseMatrix(DataType _data)
protected SparseMatrix(DataType _data, int _m, int _n, int _nz)
Method Detail |
---|
public abstract ICRS<DataType> toICRS()
public abstract CRS<DataType> toCRS()
public abstract TS<DataType> toTS()
public java.lang.Object clone()
clone
in interface com.multicorebsp.core.CompulsaryCloneable<MatrixType extends SparseMatrix<DataType,MatrixType>>
clone
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |