public final class ArraySubVector extends ArrayVector
| Constructor and Description |
|---|
ArraySubVector(ArraySubVector source) |
ArraySubVector(double[] values) |
ArraySubVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ArrayVector v) |
void |
addMultiple(ArrayVector v,
double factor) |
Vector |
clone()
Clones the vector, creating a new copy of all data
|
void |
fill(double value)
Fills a vector with a given value
|
double |
get(int i) |
double[] |
getArray() |
int |
getArrayOffset() |
int |
hashCode()
Vector hashcode, designed to match hashcode of Java double array
|
int |
length() |
void |
multiply(double factor)
Multiplies the vector by a constant factor
|
void |
set(int i,
double value) |
copyTo, subVectoradd, addMultiple, compareTo, dotProduct, equals, magnitude, magnitudeSquared, normalise, subtract, subtractMultiple, toStringpublic ArraySubVector(double[] values)
public ArraySubVector(int length)
public ArraySubVector(ArraySubVector source)
public void add(ArrayVector v)
public void addMultiple(ArrayVector v, double factor)
public void fill(double value)
AVectorpublic void multiply(double factor)
AVectorpublic int hashCode()
public double[] getArray()
getArray in class ArrayVectorpublic int getArrayOffset()
getArrayOffset in class ArrayVectorCopyright © 2012. All Rights Reserved.