|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.multicorebsp.util.Matrix<DataType>
com.multicorebsp.util.SparseMatrix<DataType,ICRS<DataType>>
com.multicorebsp.util.ICRS<DataType>
DataType - What kind of data to store.public class ICRS<DataType extends MatrixData<DataType>>
Implements the Incremental CRS datastructure for sparse matrices.
| Field Summary | |
|---|---|
int[] |
column_increment
Column increment array |
int[] |
row_increment
Row increment array |
| Fields inherited from class com.multicorebsp.util.SparseMatrix |
|---|
data, n |
| Fields inherited from class com.multicorebsp.util.Matrix |
|---|
m, nz |
| Constructor Summary | |
|---|---|
|
ICRS(CRS<DataType> toCopy)
Takes a CRS type matrix, copies and transforms it into ICRS. |
|
ICRS(DataType data,
int m,
int n,
int nz)
Base constructor, creates a matrix with the given nonzero data and increment arrays zeroed out. |
protected |
ICRS(ICRS<DataType> toCopy)
Deep copy constructor. |
|
ICRS(TS<DataType> toCopy)
Takes a TS type matrix, and copies it into ICRS format. |
|
ICRS(TS<DataType> toCopy,
int m,
int n,
int lo,
int hi)
Takes a TS type matrix, and partially copies it into ICRS. |
| Method Summary | |
|---|---|
protected void |
CRS2ICRS()
Internal conversion helper function. |
void |
removeAndAddDuplicates()
Removes and combines any double entries. |
ICRS<DataType> |
safeClone()
|
CRS<DataType> |
toCRS()
Warning: returns current matrix if this matrix already is CRS. |
ICRS<DataType> |
toICRS()
Warning: returns current matrix if this matrix already is CRS. |
TS<DataType> |
toTS()
Warning: returns current matrix if this matrix already is TS. |
| Methods inherited from class com.multicorebsp.util.SparseMatrix |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] row_increment
public int[] column_increment
| Constructor Detail |
|---|
public ICRS(DataType data,
int m,
int n,
int nz)
data - Where to store matrix data.m - Number of rows in matrix.n - Number of columns in matrix.nz - Number of nonzeroes in matrix.public ICRS(CRS<DataType> toCopy)
toCopy - The matrix to copy.public ICRS(TS<DataType> toCopy)
toCopy - The matrix to copy.
public ICRS(TS<DataType> toCopy,
int m,
int n,
int lo,
int hi)
toCopy - The matrix to copy.m - Number of rows in the resulting matrix
(can differ from toCopy if it is in local view)n - Number of columns in the resulting matrix
(can differ from toCopy if it is in local view)lo - Lower bound of the index from the TS to copy.hi - Upper bound on the indices (exclusive).protected ICRS(ICRS<DataType> toCopy)
| Method Detail |
|---|
protected void CRS2ICRS()
public ICRS<DataType> toICRS()
SparseMatrix
toICRS in class SparseMatrix<DataType extends MatrixData<DataType>,ICRS<DataType extends MatrixData<DataType>>>public CRS<DataType> toCRS()
SparseMatrix
toCRS in class SparseMatrix<DataType extends MatrixData<DataType>,ICRS<DataType extends MatrixData<DataType>>>public TS<DataType> toTS()
SparseMatrix
toTS in class SparseMatrix<DataType extends MatrixData<DataType>,ICRS<DataType extends MatrixData<DataType>>>public void removeAndAddDuplicates()
Matrix
removeAndAddDuplicates in class Matrix<DataType extends MatrixData<DataType>>public ICRS<DataType> safeClone()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||