| Constructor and Description |
|---|
DoubleVector(double[] data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eq(DoubleVector vec) |
boolean |
equals(java.lang.Object obj)
Uses the Double.equals() rather than == for compatibility with hashcode.
|
Dimensions |
getDimensions()
Gets the dimensions of the Vector or Matrix
|
java.lang.Double |
getEle(int i)
Gets the i-th element of a vector
|
int |
getNEles()
Gets the number of elements of a vector
|
int |
hashCode() |
static DoubleVector |
newInstance(double[] in) |
static DoubleVector |
newInstance(java.lang.Double[] in) |
void |
setEle(int index,
java.lang.Object val)
Sets an element of a vector.
|
double[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] vec) |
java.lang.String |
toString() |
public static DoubleVector newInstance(java.lang.Double[] in)
public static DoubleVector newInstance(double[] in)
public java.lang.Double getEle(int i)
VectorIpublic void setEle(int index,
java.lang.Object val)
throws EvaluationException
VectorIsetEle in interface VectorIEvaluationExceptionpublic int getNEles()
VectorIpublic Dimensions getDimensions()
VectorIgetDimensions in interface VectorIpublic double[] toArray()
public boolean eq(DoubleVector vec)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object[] toArray(java.lang.Object[] vec)
throws EvaluationException
toArray in interface VectorIEvaluationExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
eq(DoubleVector)
for comparison using ==.equals in class java.lang.ObjectCopyright © 2018 Singular Systems http://www.singularsys.com/jep