public interface FMatrixSparse extends FMatrix
Modifier and Type | Method and Description |
---|---|
boolean |
isAssigned(int row,
int col)
Is the specified element explicitly assigned a value
|
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 arrayLength)
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_set
copy, createLike, getNumCols, getNumRows, getType, print, set
void printNonZero()
void reshape(int numRows, int numCols, int arrayLength)
numRows
- number of rowsnumCols
- number of columnsarrayLength
- Array length for storing non-zero elements.void shrinkArrays()
void remove(int row, int col)
row
- the rowcol
- the columnboolean isAssigned(int row, int col)
row
- the rowcol
- the columnvoid zero()