public interface DMatrixSparse extends DMatrix
| Modifier and Type | Method and Description |
|---|---|
void |
printNonZero()
Prints to standard out the non-zero elements only.
|
void |
remove(int row,
int col)
If the specified element is non-zero it is removed from the structure
|
void |
reshape(int numRows,
int numCols,
int nz_length)
Reshapes the matrix so that it can store a matrix with the specified dimensions and the number of
non-zero elements
|
void |
shrinkArrays()
Reduces the size of internal data structures to their minimal size.
|
void |
zero()
Sets all elements to zero by removing the sparse graph
|
get, getNumElements, set, unsafe_get, unsafe_setcopy, createLike, getNumCols, getNumRows, print, setvoid printNonZero()
void reshape(int numRows,
int numCols,
int nz_length)
numRows - number of rowsnumCols - number of columnsnz_length - Number of non-zero elementsvoid shrinkArrays()
void remove(int row,
int col)
row - the rowcol - the columnvoid zero()