public class MatrixStorageSetterGetter extends MatrixSetterGetter
| Constructor and Description |
|---|
MatrixStorageSetterGetter(DblMatrixStorage x) |
| 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()
Return a vector containing the non-empty elements.
|
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) |
public MatrixStorageSetterGetter(DblMatrixStorage x)
public void set(java.lang.Object N,
int element)
set in class MatrixSetterGetterpublic java.lang.Object get(int element)
get in class MatrixSetterGetterpublic 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 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