public class SparseSetterGetter extends MatrixSetterGetter
| Constructor and Description |
|---|
SparseSetterGetter() |
| Modifier and Type | Method and Description |
|---|---|
int |
findMax()
Return the index of the maximum element.
|
int |
findMin()
Return the index of the minimum element.
|
java.lang.Object |
get(int element) |
java.util.Vector |
getContents() |
java.util.Vector |
getNonEmptyIndices()
Returns a Vector of non-zero element indices.
|
boolean |
isNonEmptyAt(int index)
Returns true if the value at the given index is non-empty.
|
java.lang.Object |
Max()
Return the maximum element.
|
java.lang.Object |
Min()
Return the maximum element.
|
int |
numberNonEmpty()
Return the number of non-empty elements
|
void |
set(java.lang.Object N,
int element) |
void |
setContents(java.util.Vector in) |
void |
setEmptyValue(java.lang.Object zv) |
public void setContents(java.util.Vector in)
setContents in class MatrixSetterGetterpublic java.util.Vector getContents()
getContents in class MatrixSetterGetterpublic java.util.Vector getNonEmptyIndices()
getNonEmptyIndices in class MatrixSetterGetterpublic int numberNonEmpty()
numberNonEmpty in class MatrixSetterGetterpublic void setEmptyValue(java.lang.Object zv)
public void set(java.lang.Object N,
int element)
set in class MatrixSetterGetterpublic java.lang.Object get(int element)
get in class MatrixSetterGetterpublic boolean isNonEmptyAt(int index)
isNonEmptyAt in class MatrixSetterGetterpublic int findMax()
findMax in class MatrixSetterGetterpublic java.lang.Object Max()
Max in class MatrixSetterGetterpublic int findMin()
findMin in class MatrixSetterGetterpublic java.lang.Object Min()
Min in class MatrixSetterGetterCopyright © 2011, 2013. Daniel P. Dougherty