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)
VectorI
public void setEle(int index, java.lang.Object val) throws EvaluationException
VectorI
setEle
in interface VectorI
EvaluationException
public int getNEles()
VectorI
public Dimensions getDimensions()
VectorI
getDimensions
in interface VectorI
public double[] toArray()
public boolean eq(DoubleVector vec)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object[] toArray(java.lang.Object[] vec) throws EvaluationException
toArray
in interface VectorI
EvaluationException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
eq(DoubleVector)
for comparison using ==.equals
in class java.lang.Object
Copyright © 2018 Singular Systems http://www.singularsys.com/jep