| Package | Description |
|---|---|
| mikera.vectorz | |
| mikera.vectorz.impl |
| Modifier and Type | Class and Description |
|---|---|
class |
GrowableVector
Implements a growable vector, intended for incrementally building vectors
Note that getting the underlying array or a subVector is unsafe, since the
underlying array may be discarded as the vector is grown.
|
class |
Vector
General purpose vector of arbitrary length, backed by an internal double[] array
|
| Modifier and Type | Method and Description |
|---|---|
void |
ArrayVector.add(ArrayVector v) |
void |
Vector.add(ArrayVector v,
int offset) |
void |
ArrayVector.add(ArrayVector src,
int srcOffset) |
void |
Vector.addMultiple(ArrayVector v,
double factor) |
void |
ArrayVector.addMultiple(ArrayVector v,
double factor) |
void |
Vector.addWeighted(ArrayVector v,
double factor) |
void |
ArrayVector.copy(int start,
int length,
ArrayVector dest,
int destOffset) |
void |
Vector.sub(ArrayVector v) |
void |
Vector.sub(ArrayVector v,
int offset) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArraySubVector
Vector referring to an offset into a double[] array
|
| Modifier and Type | Method and Description |
|---|---|
void |
ArraySubVector.add(ArrayVector v) |
void |
ArraySubVector.addMultiple(ArrayVector v,
double factor) |
double |
SparseIndexedVector.dotProduct(ArrayVector v) |
void |
SparseIndexedVector.multiply(ArrayVector v) |
| Constructor and Description |
|---|
ArraySubVector(ArrayVector source,
int offset,
int length)
Constructs a vector directly referencing a sub-vector of an existing
array-based Vector
|
Copyright © 2013. All Rights Reserved.