public class SymmetricMatrix<K,V extends java.lang.Comparable> extends AbstractSparseMatrix<K,K,V>
1 5 -3 5 2 9 -3 9 8
Constructor and Description |
---|
SymmetricMatrix() |
SymmetricMatrix(int inInitialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
addKey(K inKey) |
void |
changeColKey(K inOldKey,
K inNewKey)
Changes the colkey inOldKey to inNewKey.
|
void |
changeKey(K inOldKey,
K inNewKey) |
void |
changeRowKey(K inOldKey,
K inNewKey)
Changes the rowkey inOldKey to inNewKey.
|
SymmetricMatrix<K,V> |
clone() |
java.util.Set<K> |
colKeySet() |
boolean |
containsCol(K inKey) |
boolean |
containsKey(K inKey) |
boolean |
containsRow(K inKey) |
V |
get(K inRowKey,
K inColKey) |
java.util.Map<K,V> |
getRow(K inKey) |
java.util.Set<K> |
keySet() |
void |
put(K inRowKey,
K inColKey,
V inValue) |
void |
removeCol(K inKey) |
java.util.Map<K,V> |
removeKey(K inKey) |
void |
removeKeys(java.util.Set<K> inKeys) |
java.util.Map<K,V> |
removeRow(K inKey) |
java.util.Set<K> |
rowKeySet() |
java.lang.String |
toString() |
addCol, addRow, clearCol, clearRow, getCellWithSmallestValue, getCol, getNonIdentityCellWithSmallestValue, putCol, putRow, remove, removeCols, size, toString
public SymmetricMatrix()
public SymmetricMatrix(int inInitialCapacity)
public void put(K inRowKey, K inColKey, V inValue)
put
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public V get(K inRowKey, K inColKey)
get
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public java.lang.String toString()
toString
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public java.util.Set<K> rowKeySet()
rowKeySet
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public java.util.Set<K> colKeySet()
colKeySet
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public boolean containsRow(K inKey)
containsRow
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public boolean containsCol(K inKey)
containsCol
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public boolean containsKey(K inKey)
public java.util.Map<K,V> removeRow(K inKey)
removeRow
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public void removeCol(K inKey)
removeCol
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public void removeKeys(java.util.Set<K> inKeys)
public void changeRowKey(K inOldKey, K inNewKey)
AbstractSparseMatrix
changeRowKey
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public void changeColKey(K inOldKey, K inNewKey)
AbstractSparseMatrix
changeColKey
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
public SymmetricMatrix<K,V> clone()
clone
in class AbstractSparseMatrix<K,K,V extends java.lang.Comparable>
[email protected]