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 MatrixSetterGetter
public java.lang.Object get(int element)
get
in class MatrixSetterGetter
public void setContents(java.util.Vector in)
setContents
in class MatrixSetterGetter
public java.util.Vector getContents()
getContents
in class MatrixSetterGetter
public java.util.Vector getNonEmptyIndices()
getNonEmptyIndices
in class MatrixSetterGetter
public int numberNonEmpty()
numberNonEmpty
in class MatrixSetterGetter
public boolean isNonEmptyAt(int index)
isNonEmptyAt
in class MatrixSetterGetter
public int findMax()
findMax
in class MatrixSetterGetter
public java.lang.Object Max()
Max
in class MatrixSetterGetter
public int findMin()
findMin
in class MatrixSetterGetter
public java.lang.Object Min()
Min
in class MatrixSetterGetter
Copyright © 2011, 2013. Daniel P. Dougherty