public abstract class AbstractSparseMatrix<RK,CK,V extends java.lang.Comparable> extends java.lang.Object implements java.lang.Cloneable
Constructor and Description |
---|
AbstractSparseMatrix() |
AbstractSparseMatrix(int inInitialRowCapacity,
int inInitialColCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
addCol(CK inColKey) |
void |
addRow(RK inRowKey) |
protected void |
changeColKey(CK inOldKey,
CK inNewKey)
Changes the colkey inOldKey to inNewKey.
|
protected void |
changeRowKey(RK inOldKey,
RK inNewKey)
Changes the rowkey inOldKey to inNewKey.
|
void |
clearCol(CK inColKey) |
void |
clearRow(RK inRowKey) |
AbstractSparseMatrix<RK,CK,V> |
clone() |
protected java.util.Set<CK> |
colKeySet() |
protected boolean |
containsCol(CK inColKey) |
protected boolean |
containsRow(RK inRowKey) |
V |
get(RK inRowKey,
CK inColKey) |
MatrixCell<RK,CK,V> |
getCellWithSmallestValue() |
protected java.util.Map<RK,V> |
getCol(CK inColKey) |
MatrixCell<RK,CK,V> |
getNonIdentityCellWithSmallestValue() |
protected java.util.Map<CK,V> |
getRow(RK inRowKey) |
void |
put(RK inRowKey,
CK inColKey,
V inValue) |
void |
putCol(CK inColKey,
java.util.Map<RK,V> inRowMap) |
void |
putRow(RK inRowKey,
java.util.Map<CK,V> inColMap) |
V |
remove(RK inRowKey,
CK inColKey) |
protected void |
removeCol(CK inColKey) |
protected void |
removeCols(java.util.Set<CK> inColKeys) |
protected java.util.Map<CK,V> |
removeRow(RK inRowKey) |
protected java.util.Set<RK> |
rowKeySet() |
int |
size() |
java.lang.String |
toString() |
void |
toString(java.io.OutputStream inStream) |
public AbstractSparseMatrix()
public AbstractSparseMatrix(int inInitialRowCapacity, int inInitialColCapacity)
public AbstractSparseMatrix<RK,CK,V> clone()
clone
in class java.lang.Object
public int size()
public MatrixCell<RK,CK,V> getCellWithSmallestValue()
public MatrixCell<RK,CK,V> getNonIdentityCellWithSmallestValue()
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(java.io.OutputStream inStream) throws java.io.IOException
java.io.IOException
protected boolean containsRow(RK inRowKey)
protected void changeRowKey(RK inOldKey, RK inNewKey)
protected boolean containsCol(CK inColKey)
protected void removeCols(java.util.Set<CK> inColKeys)
protected void changeColKey(CK inOldKey, CK inNewKey)
[email protected]