| Package | Description |
|---|---|
| mikera.arrayz | |
| mikera.matrixx | |
| mikera.matrixx.impl | |
| mikera.transformz | |
| mikera.transformz.impl | |
| mikera.vectorz | |
| mikera.vectorz.functions | |
| mikera.vectorz.impl | |
| mikera.vectorz.util |
| Modifier and Type | Method and Description |
|---|---|
AVector |
INDArray.asVector() |
| Modifier and Type | Method and Description |
|---|---|
AVector |
AMatrix.asVector()
Returns the matrix values as a single reference Vector in the form [row0
row1 row2....]
|
AVector |
AMatrix.cloneRow(int row) |
AVector |
AMatrix.copyOfTranslationVector() |
AVector |
AMatrix.getColumn(int column)
Returns a column of the matrix as a vector view
|
AVector |
AMatrix.getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
AVector |
AMatrix.getRow(int row)
Returns a row of the matrix as a vector view
|
AVector |
AMatrix.toVector()
Converts the matrix to a single flattened vector
in row major order.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<AVector> |
AMatrix.iterator()
Returns an iterator over rows in this Matrix
|
| Modifier and Type | Method and Description |
|---|---|
double |
AMatrix.calculateElement(int i,
AVector v) |
static AMatrix |
Matrixx.createFromVector(AVector data,
int rows,
int columns) |
static AMatrix |
Matrixx.createFromVectors(AVector... data) |
static Matrix33 |
Matrixx.createRotationMatrix(AVector v,
double angle) |
void |
MatrixMN.transform(AVector source,
AVector dest) |
void |
Matrix33.transform(AVector source,
AVector dest) |
void |
Matrix22.transform(AVector source,
AVector dest) |
void |
AMatrix.transform(AVector source,
AVector dest) |
void |
Matrix22.transform(Vector2 source,
AVector dest) |
void |
Matrix33.transform(Vector3 source,
AVector dest) |
void |
Matrix33.transformInPlace(AVector dest) |
void |
AMatrix.transformInPlace(AVector v) |
void |
Matrix33.transformNormal(AVector source,
AVector dest) |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
Matrixx.createFromVectors(List<AVector> data) |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixSubVector
Abstract class for matrix sub vector views (rows and columns)
|
| Modifier and Type | Method and Description |
|---|---|
AVector |
RowMatrix.asVector() |
AVector |
ColumnMatrix.asVector() |
AVector |
TransposedMatrix.getColumn(int column) |
AVector |
PermutedMatrix.getColumn(int column)
Returns a column of the permuted matrix as a vector reference
|
AVector |
TransposedMatrix.getLeadingDiagonal() |
AVector |
IdentityMatrix.getLeadingDiagonal() |
AVector |
DiagonalMatrix.getLeadingDiagonal() |
AVector |
VectorMatrixMN.getRow(int row) |
AVector |
TransposedMatrix.getRow(int row) |
AVector |
PermutedMatrix.getRow(int row)
Returns a row of the permuted matrix as a vector reference
|
abstract AVector |
AVectorMatrix.getRow(int row)
Gets a row of the matrix.
|
AVector |
MatrixIterator.next() |
AVector |
RowMatrix.toVector() |
AVector |
ColumnMatrix.toVector() |
AVector |
IdentityMatrix.transform(AVector source) |
| Modifier and Type | Method and Description |
|---|---|
void |
VectorMatrixMN.appendRow(AVector row) |
void |
VectorMatrixM3.appendRow(AVector row) |
abstract void |
AVectorMatrix.appendRow(AVector row) |
double |
ZeroMatrix.calculateElement(int i,
AVector v) |
double |
IdentityMatrix.calculateElement(int i,
AVector v) |
double |
DiagonalMatrix.calculateElement(int i,
AVector v) |
double |
ADiagonalMatrix.calculateElement(int i,
AVector v) |
AVector |
IdentityMatrix.transform(AVector source) |
void |
ZeroMatrix.transform(AVector input,
AVector output) |
void |
VectorMatrixMN.transform(AVector source,
AVector dest) |
void |
VectorMatrixM3.transform(AVector source,
AVector dest) |
void |
SubsetMatrix.transform(AVector source,
AVector dest) |
void |
IdentityMatrix.transform(AVector source,
AVector dest) |
void |
AVectorMatrix.transform(AVector source,
AVector dest) |
void |
VectorMatrixM3.transform(Vector3 source,
AVector dest) |
void |
ScalarMatrix.transformInPlace(AVector v) |
void |
DiagonalMatrix.transformInPlace(AVector v) |
void |
ADiagonalMatrix.transformInPlace(AVector v) |
static RowMatrix |
RowMatrix.wrap(AVector v) |
static ColumnMatrix |
ColumnMatrix.wrap(AVector v) |
| Constructor and Description |
|---|
ColumnMatrix(AVector v) |
RowMatrix(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
AAffineTransform.copyOfTranslationVector()
Returns a deep copy of the translation vector for this affine transform
|
AVector |
Translation.getTranslationVector() |
abstract AVector |
ATranslation.getTranslationVector()
Gets the vector offset that this translation represents.
|
AVector |
ATransform.transform(AVector v)
Transforms a vector, returning a new transformed vector
|
| Modifier and Type | Method and Description |
|---|---|
double |
Translation3.calculateElement(int i,
AVector v) |
double |
Translation.calculateElement(int i,
AVector v) |
double |
ATranslation.calculateElement(int i,
AVector v) |
double |
ATransform.calculateElement(int i,
AVector inputVector)
Calculates a single element of the output.
|
double |
AAffineTransform.calculateElement(int i,
AVector v) |
static ATransform |
Transformz.constantTransform(int inputDimensions,
AVector v) |
static AAffineTransform |
Transformz.createAffineTransform(AMatrix m,
AVector v) |
static Affine34 |
Transformz.createAffineTransform(Matrix33 m,
AVector v) |
static ATranslation |
Transformz.createTranslation(AVector v) |
AVector |
ATransform.transform(AVector v)
Transforms a vector, returning a new transformed vector
|
void |
Translation3.transform(AVector source,
AVector dest) |
void |
Translation.transform(AVector source,
AVector dest) |
void |
ATranslation.transform(AVector source,
AVector dest) |
abstract void |
ATransform.transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
AffineMN.transform(AVector source,
AVector dest) |
void |
Affine34.transform(AVector source,
AVector dest) |
void |
AAffineTransform.transform(AVector source,
AVector dest) |
void |
Translation3.transformInPlace(AVector v) |
void |
Translation.transformInPlace(AVector v) |
void |
ATranslation.transformInPlace(AVector v) |
void |
ATransform.transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
Affine34.transformInPlace(AVector dest) |
void |
AAffineTransform.transformInPlace(AVector v) |
void |
ATranslation.transformNormal(AVector source,
AVector dest) |
void |
Affine34.transformNormal(AVector source,
AVector dest) |
void |
AAffineTransform.transformNormal(AVector source,
AVector dest) |
| Constructor and Description |
|---|
Affine34(AMatrix m,
AVector v) |
Affine34(Matrix33 m,
AVector v) |
AffineMN(AMatrix m,
AVector v) |
Translation(AVector source) |
Translation3(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
ConstantTransform4.getConstantValue() |
AVector |
ConstantTransform3.getConstantValue() |
AVector |
ConstantTransform.getConstantValue() |
abstract AVector |
AConstantTransform.getConstantValue() |
AVector |
IdentityTranslation.getTranslationVector() |
AVector |
IdentityTranslation.transform(AVector source) |
| Modifier and Type | Method and Description |
|---|---|
double |
SubsetTransform.calculateElement(int i,
AVector source) |
double |
IdentityTranslation.calculateElement(int i,
AVector v) |
double |
ConstantTransform4.calculateElement(int i,
AVector inputVector) |
double |
ConstantTransform3.calculateElement(int i,
AVector inputVector) |
double |
ConstantTransform.calculateElement(int i,
AVector v) |
AVector |
IdentityTranslation.transform(AVector source) |
Vector3 |
ConstantTransform3.transform(AVector source) |
void |
SubsetTransform.transform(AVector source,
AVector dest) |
void |
IdentityTranslation.transform(AVector source,
AVector dest) |
void |
ConstantTransform4.transform(AVector source,
AVector dest) |
void |
ConstantTransform3.transform(AVector source,
AVector dest) |
void |
ConstantTransform.transform(AVector source,
AVector dest) |
void |
CompoundTransform.transform(AVector source,
AVector dest) |
void |
ConstantTransform3.transform(AVector source,
Vector3 dest) |
void |
ConstantTransform4.transform(AVector source,
Vector4 dest) |
void |
IdentityTranslation.transformInPlace(AVector v) |
| Constructor and Description |
|---|
ConstantTransform(int inputDimensions,
AVector value)
Creates a new constant transform, using the provided vector as the constant value
Does *not* take a defensive copy
|
ConstantTransform3(int inputDimensions,
AVector value)
Creates a new constant transform, using the provided vector as the constant value
Does *not* take a defensive copy
|
ConstantTransform4(int inputDimensions,
AVector value)
Creates a new constant transform, using the provided vector as the constant value
Does *not* take a defensive copy
|
| Modifier and Type | Class and Description |
|---|---|
class |
APrimitiveVector
Abstract base class for specialised primitive vectors
|
class |
ArrayVector
Base class for vectors backed by a double[] array.
|
class |
BitVector
Vector of bits - constrained to 0.0 / 1.0 values
Intended for compact representation/storage of binary vectors
|
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
|
class |
Vector1
Specialised 1D vector
|
class |
Vector2
Specialised 2D vector
|
class |
Vector3
Specialised 3D vector
Represents a point in 3D x,y,z space.
|
class |
Vector4
Specialised 4D vector
|
| Modifier and Type | Method and Description |
|---|---|
AVector |
AVector.asVector() |
static AVector |
Vectorz.axisVector(int axisIndex,
int dimensions) |
AVector |
GrowableVector.build()
Function to build a fixed-size vector containing a copy of data
once the GrowableVector is constructed
|
AVector |
BitVector.clone() |
AVector |
AVector.clone()
Clones the vector, creating a new copy of all data.
|
static AVector |
Vectorz.create(AVector vector) |
static AVector |
Vectorz.create(double... data) |
static AVector |
Vectorz.create(Iterable<Object> d)
Create a vector from an arbitrary iterable object
|
static AVector |
Vectorz.create(IVector vector) |
static AVector |
Vectorz.create(List<Object> d)
Create a vector from a list of numerical values (objects should be java.lang.Number instances)
|
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createSameSize(AVector v) |
static AVector |
Vectorz.createUniformRandomVector(int dimensions) |
static AVector |
Vectorz.createZeroVector(int length) |
static AVector |
Vectorz.immutableZeroVector(int dimensions)
Returns an immutable vector of zeros
|
static AVector |
Vectorz.join(AVector... vectors) |
AVector |
AVector.join(AVector second)
Returns a new vector that refers to this vector joined to a second vector
|
static AVector |
Vectorz.join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
static AVector |
Vectorz.join(List<AVector> vectors) |
static AVector |
Vectorz.newVector(int length)
Returns a vector filled with zeros of the specified length.
|
static AVector |
Vectorz.parse(String ednString)
Parse a vector in edn format
|
AVector |
AVector.subVector(int offset,
int length)
Obtains a sub-vector that refers to this vector.
|
static AVector |
Vectorz.toVector(Object o)
Coerce to AVector
|
static AVector |
Vectorz.wrap(double[] data) |
static AVector |
Vectorz.wrap(double[][] data) |
| Modifier and Type | Method and Description |
|---|---|
void |
Vector3.add(AVector v) |
void |
Vector.add(AVector v) |
void |
AVector.add(AVector v)
Adds another vector to this one
|
void |
ArrayVector.add(AVector src) |
void |
AVector.add(AVector v,
int offset)
Adds another vector to this one
|
void |
ArrayVector.add(AVector src,
int srcOffset) |
void |
Vector3.addMultiple(AVector v,
double factor) |
void |
Vector.addMultiple(AVector v,
double factor) |
void |
AVector.addMultiple(AVector v,
double factor)
Adds a scaled multiple of another vector to this one
|
void |
ArrayVector.addMultiple(AVector v,
double factor) |
void |
AVector.addMultiple(AVector v,
double factor,
int srcOffset) |
void |
Vector.addProduct(AVector a,
AVector b) |
void |
AVector.addProduct(AVector a,
AVector b) |
void |
AVector.addProduct(AVector a,
AVector b,
double factor) |
void |
AVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
ArrayVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
Vector.addWeighted(AVector v,
double factor) |
void |
AVector.addWeighted(AVector v,
double factor)
Updates a weighted average of this vector with another vector
|
double |
Vector3.angle(AVector v) |
double |
AVector.angle(AVector v)
Returns the Euclidean angle between this vector and another vector
|
void |
GrowableVector.append(AVector v) |
static double |
Vectorz.averageSquaredDifference(AVector a,
AVector b) |
static double |
Vectorz.averageValue(AVector v) |
int |
AVector.compareTo(AVector a) |
static void |
Vectorz.copy(AVector source,
int srcOffset,
AVector dest,
int destOffset,
int length) |
void |
AVector.copy(int start,
int length,
AVector dest,
int destOffset)
Copies a subset of this vector to a vector at the specified offset
|
void |
ArrayVector.copy(int start,
int length,
AVector dest,
int destOffset) |
void |
AVector.copyTo(AVector dest,
int offset)
Copies a the contents of a vector to a vector at the specified offset
|
static AVector |
Vectorz.create(AVector vector) |
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createSameSize(AVector v) |
double |
AVector.distance(AVector v) |
double |
AVector.distanceL1(AVector v) |
double |
AVector.distanceLinf(AVector v) |
double |
AVector.distanceSquared(AVector v) |
void |
AVector.divide(AVector v) |
void |
ArrayVector.divide(AVector v) |
double |
Vector.dotProduct(AVector v) |
double |
AVector.dotProduct(AVector v) |
double |
Vector.dotProduct(AVector v,
Index ix) |
double |
AVector.dotProduct(AVector v,
Index ix) |
boolean |
AVector.epsilonEquals(AVector v) |
boolean |
AVector.epsilonEquals(AVector v,
double tolerance) |
static void |
Vectorz.fillBinaryRandom(AVector v) |
static void |
Vectorz.fillBinaryRandom(AVector v,
double prob) |
static void |
Vectorz.fillGaussian(AVector v) |
static void |
Vectorz.fillGaussian(AVector v,
double mean,
double sd) |
static void |
Vectorz.fillRandom(AVector v) |
static int |
Vectorz.indexOfMaxValue(AVector v) |
static int |
Vectorz.indexOfMinValue(AVector v)
Returns the index of the minimum-valued component in a vector
|
void |
AVector.interpolate(AVector a,
AVector b,
double alpha) |
void |
AVector.interpolate(AVector v,
double alpha) |
static void |
Vectorz.invSqrt(AVector v) |
static AVector |
Vectorz.join(AVector... vectors) |
AVector |
AVector.join(AVector second)
Returns a new vector that refers to this vector joined to a second vector
|
static AVector |
Vectorz.join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
static double |
Vectorz.maxValue(AVector v) |
static double |
Vectorz.minValue(AVector v)
Returns the minimum-valued component in a vector
|
void |
Vector.multiply(AVector v) |
void |
AVector.multiply(AVector v) |
void |
ArrayVector.multiply(AVector v) |
void |
Vector3.projectToPlane(AVector normal,
double distance) |
void |
AVector.projectToPlane(AVector normal,
double distance) |
static double |
Vectorz.rmsDifference(AVector a,
AVector b) |
void |
AVector.scale(AVector v)
Scales the vector by another vector of the same size
|
void |
AVector.scaleAdd(double factor,
AVector v) |
void |
Vector3.set(AVector v) |
void |
AVector.set(AVector a)
Sets the vector to equal the value of another vector
|
void |
ArrayVector.set(AVector a) |
void |
AVector.set(AVector v,
Index indexes)
sets the vector using values indexed from another vector
|
void |
AVector.set(AVector a,
int offset)
Set the vector equal to an offset into another vector
|
void |
ArrayVector.set(AVector a,
int offset) |
void |
Vector.sub(AVector v) |
void |
AVector.sub(AVector v)
Subtracts a vector from this vector
|
void |
AVector.subMultiple(AVector v,
double factor)
Subtracts a scaled multiple of another vector from this vector
|
static double |
Vectorz.totalValue(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
static AVector |
Vectorz.join(List<AVector> vectors) |
| Constructor and Description |
|---|
BitVector(AVector source) |
GrowableVector(AVector v) |
Vector(AVector source)
Copy constructor from an arbitrary vector
|
Vector3(AVector v) |
VectorIterator(AVector source) |
VectorIterator(AVector source,
int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
ScalarFunction.calculate(AVector input)
Calculates the result of this scalar function with the given input vector
|
| Modifier and Type | Class and Description |
|---|---|
class |
ADerivedVector
Derived vector delegates all calls to an underlying vector
|
class |
ArraySubVector
Vector referring to an offset into a double[] array
|
class |
ASparseVector
Abstract base class for Sparse vector implementations
|
class |
AxisVector
Specialized unit axis vector.
|
class |
ComputedVector |
class |
IdenticalElementVector
A mutable vector that always has identical components.
|
class |
IndexedArrayVector
Vector that addresses elements indexed into double[] array
|
class |
IndexedSubVector
Vector that addresses elements indexed into another source vector
|
class |
JoinedVector
A vector that represents the concatenation of two vectors.
|
class |
SingleElementVector
A mutable vector that has one non-zero element.
|
class |
SparseIndexedVector
Indexed sparse vector.
|
class |
UnmodifiableVector |
class |
Vector0
Special singleton zero length vector class.
|
class |
WrappedSubVector |
class |
ZeroVector
Specialised vector containing nothing but zeros.
|
| Modifier and Type | Field and Description |
|---|---|
protected AVector |
ADerivedVector.source |
| Modifier and Type | Method and Description |
|---|---|
AVector |
ArraySubVector.clone() |
static AVector |
JoinedVector.join(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
abstract AVector |
ASparseVector.nonSparseValues()
Returns the non-sparse values as a vector view
|
AVector |
JoinedVector.subVector(int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
JoinedVector.add(AVector a) |
void |
JoinedVector.add(AVector a,
int offset) |
void |
JoinedVector.addMultiple(AVector a,
double factor) |
void |
JoinedVector.addMultiple(AVector a,
double factor,
int offset) |
void |
JoinedVector.addProduct(AVector a,
AVector b,
double factor) |
void |
JoinedVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
JoinedVector.copy(int start,
int length,
AVector dest,
int destOffset) |
void |
SparseIndexedVector.copyTo(AVector v,
int offset) |
void |
JoinedVector.copyTo(AVector dest,
int offset) |
static SparseIndexedVector |
SparseIndexedVector.create(int length,
Index index,
AVector data) |
static int |
JoinedVector.depthCalc(AVector v) |
double |
SparseIndexedVector.dotProduct(AVector v) |
double |
JoinedVector.dotProduct(AVector v) |
double |
AxisVector.dotProduct(AVector v) |
static AVector |
JoinedVector.join(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
void |
SparseIndexedVector.multiply(AVector v) |
void |
JoinedVector.set(AVector src) |
void |
JoinedVector.set(AVector src,
int offset) |
static IndexedSubVector |
IndexedSubVector.wrap(AVector source,
int[] indexes) |
| Constructor and Description |
|---|
ADerivedVector(AVector source) |
ListWrapper(AVector v) |
UnmodifiableVector(AVector source) |
WrappedSubVector(AVector source,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
VectorBuilder.toVector() |
AVector |
VectorBuilder.toWrappingWector()
Creates a vector that wraps the internal data of this VectorBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MatrixBuilder.add(AVector v) |
Copyright © 2013. All Rights Reserved.