| Modifier and Type | Method and Description |
|---|---|
AVector |
SliceArray.asVector() |
AVector |
NDArray.asVector() |
AVector |
INDArray.asVector()
Constructs a view of the array as a single vector in row-major order.
|
| Modifier and Type | Method and Description |
|---|---|
static INDArray |
Arrayz.createFromVector(AVector a,
int... shape)
Creates a new array using the elements in the specified vector.
|
static Array |
Array.createFromVector(AVector a,
int[] shape)
Creates a new matrix using the elements in the specified vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Index |
Index.create(AVector v) |
| 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.getBand(int band)
Gets a specific band of the matrix, as a view vector.
|
AVector |
AMatrix.getBandWrapped(int band) |
AVector |
AMatrix.getColumn(int column)
Returns a column of the matrix as a vector view
|
AVector |
AMatrix.getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AVector |
AMatrix.getRow(int row)
Returns a row of the matrix as a vector view
|
AVector |
Matrix33.innerProduct(AVector a) |
AVector |
Matrix22.innerProduct(AVector a) |
AVector |
AMatrix.innerProduct(AVector v) |
AVector |
AMatrix.slice(int rowNumber) |
AVector |
AMatrix.transform(AVector source) |
| Modifier and Type | Method and Description |
|---|---|
List<AVector> |
AMatrix.getSlices() |
Iterator<AVector> |
AMatrix.iterator()
Returns an iterator over rows in this Matrix
|
| Modifier and Type | Method and Description |
|---|---|
void |
AMatrix.add(AVector v) |
double |
AMatrix.calculateElement(int i,
AVector v) |
static Matrix |
Matrixx.createFromVector(AVector data,
int rows,
int columns)
Creates a new matrix using the elements in the specified vector.
|
static AMatrix |
Matrixx.createFromVectors(AVector... data) |
static Matrix22 |
Matrix22.createReflectionMatrix(AVector normal) |
static Matrix33 |
Matrixx.createRotationMatrix(AVector v,
double angle) |
static AMatrix |
Matrixx.createSparse(int inputDims,
Index[] indexes,
AVector[] weights) |
AVector |
Matrix33.innerProduct(AVector a) |
AVector |
Matrix22.innerProduct(AVector a) |
Vector |
Matrix.innerProduct(AVector a) |
AVector |
AMatrix.innerProduct(AVector v) |
void |
Matrix.setColumn(int j,
AVector col) |
void |
AMatrix.setColumn(int i,
AVector col) |
void |
Matrix.setRow(int i,
AVector row) |
void |
AMatrix.setRow(int i,
AVector row) |
void |
AMatrix.sub(AVector v) |
Vector |
Matrix.transform(AVector a) |
AVector |
AMatrix.transform(AVector source) |
void |
Matrix33.transform(AVector source,
AVector dest) |
void |
Matrix22.transform(AVector source,
AVector dest) |
void |
Matrix.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 |
AVectorMatrix<T extends AVector>
Abstract base class for matrices that use a collection of Vectors
as storage for the matrix rows.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AMatrixSubVector
Abstract class for matrix sub vector views (rows and columns etc.)
|
class |
MatrixColumnView
A class representing a view of a matrix column as a vector
|
class |
MatrixRowView
A class representing a view of a matrix row as a vector
|
| Modifier and Type | Method and Description |
|---|---|
AVector |
ZeroMatrix.asVector() |
AVector |
StridedMatrix.asVector() |
AVector |
RowMatrix.asVector() |
AVector |
ColumnMatrix.asVector() |
AVector |
BandedMatrix.getBand(int band) |
AVector |
ADiagonalMatrix.getBand(int band) |
abstract AVector |
ABandedMatrix.getBand(int band) |
AVector |
TransposedMatrix.getColumn(int column) |
AVector |
QuadtreeMatrix.getColumn(int col) |
AVector |
PermutedMatrix.getColumn(int column)
Returns a column of the permuted matrix as a vector reference
|
AVector |
ZeroMatrix.getLeadingDiagonal() |
AVector |
ScalarMatrix.getLeadingDiagonal() |
AVector |
IdentityMatrix.getLeadingDiagonal() |
AVector |
VectorMatrixMN.getRow(int row) |
AVector |
TransposedMatrix.getRow(int row) |
AVector |
QuadtreeMatrix.getRow(int row) |
AVector |
PermutedMatrix.getRow(int row)
Returns a row of the permuted matrix as a vector reference
|
AVector |
BroadcastVectorMatrix.getRow(int row) |
AVector |
ABandedMatrix.getRow(int row) |
AVector |
MatrixIterator.next() |
AVector |
TransposedMatrix.slice(int rowNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
VectorMatrixMN.appendRow(AVector row) |
void |
VectorMatrixM3.appendRow(AVector row) |
void |
BroadcastVectorMatrix.appendRow(AVector row) |
abstract void |
AVectorMatrix.appendRow(AVector row) |
double |
ZeroMatrix.calculateElement(int i,
AVector v) |
double |
VectorMatrixMN.calculateElement(int i,
AVector inputVector) |
double |
VectorMatrixM3.calculateElement(int i,
AVector inputVector) |
double |
SubsetMatrix.calculateElement(int i,
AVector inputVector) |
double |
PermutationMatrix.calculateElement(int i,
AVector inputVector) |
double |
IdentityMatrix.calculateElement(int i,
AVector v) |
double |
DiagonalMatrix.calculateElement(int i,
AVector v) |
double |
AVectorMatrix.calculateElement(int i,
AVector inputVector) |
double |
ADiagonalMatrix.calculateElement(int i,
AVector v) |
static DiagonalMatrix |
DiagonalMatrix.create(AVector v) |
Vector |
IdentityMatrix.innerProduct(AVector v) |
Vector |
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 |
PermutationMatrix.transform(AVector source,
AVector dest) |
void |
IdentityMatrix.transform(AVector source,
AVector dest) |
void |
BandedMatrix.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 |
IdentityMatrix.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) |
static VectorMatrixMN |
VectorMatrixMN.wrap(AVector[] rows) |
static BroadcastVectorMatrix |
BroadcastVectorMatrix.wrap(AVector v,
int rows) |
static BandedMatrix |
BandedMatrix.wrap(int rowCount,
int columnCount,
int minBand,
int maxBand,
AVector... bands) |
| 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 |
ITransform.transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
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 |
Affine23.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 |
Affine23.transformInPlace(AVector dest) |
void |
AAffineTransform.transformInPlace(AVector v) |
void |
ATranslation.transformNormal(AVector source,
AVector dest) |
void |
Affine34.transformNormal(AVector source,
AVector dest) |
void |
Affine23.transformNormal(AVector source,
AVector dest) |
void |
AAffineTransform.transformNormal(AVector source,
AVector dest) |
| Constructor and Description |
|---|
Affine23(AMatrix m,
AVector v) |
Affine23(Matrix22 m,
AVector v) |
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() |
| 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) |
double |
AOpTransform.calculateElement(int i,
AVector inputVector) |
Vector |
IdentityTranslation.transform(AVector source) |
Vector |
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 |
AOpTransform.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 |
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() |
AVector |
AScalar.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(double... data) |
static AVector |
Vectorz.create(DoubleBuffer d)
Create a vector from a DoubleBuffer
Note: consumes all doubles from the buffer
|
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.create(Object o) |
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createRange(int length) |
static AVector |
Vectorz.createSameSize(AVector v) |
static AVector |
Vectorz.createUniformRandomVector(int dimensions) |
static AVector |
Vectorz.createZeroVector(int length) |
abstract AVector |
AVector.exactClone()
Returns an exact clone of this vector, i.e.
|
AVector |
AVector.getTranspose() |
AVector |
AVector.getTransposeView() |
static AVector |
Vectorz.immutableZeroVector(int dimensions)
Returns an immutable vector of zeros
|
AVector |
AVector.innerProduct(AMatrix m) |
AVector |
AVector.innerProduct(AScalar s) |
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.
|
AVector |
AVector.toNormal()
Creates a new mutable vector representing the normalised value of this vector
|
static AVector |
Vectorz.toVector(Object o)
Coerce to AVector
|
static AVector |
Vectorz.wrap(double[][] data) |
static AVector |
Vectorz.wrap(double[] data,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
Vector3.add(AVector v) |
void |
Vector2.add(AVector v) |
void |
Vector.add(AVector v) |
void |
AVector.add(AVector v)
Adds another vector to this one
|
void |
AVector.add(AVector src,
int srcOffset)
Adds part another vector to this one, starting at the specified offset in the source vector
|
void |
AVector.add(int offset,
AVector a)
Adds another vector into this one, at the specified offset
|
void |
AVector.add(int offset,
AVector a,
int aOffset,
int length)
Adds another vector into this one, at the specified offset
|
void |
Vector4.addMultiple(AVector v,
double factor) |
void |
Vector3.addMultiple(AVector v,
double factor) |
void |
Vector.addMultiple(AVector v,
double factor) |
void |
AVector.addMultiple(AVector src,
double factor)
Adds a scaled multiple of another vector to this one
|
void |
AVector.addMultiple(AVector source,
Index sourceToDest,
double factor)
Adds source vector to this vector at the specified indexes which should map from source->this
|
void |
AVector.addMultiple(AVector src,
int srcOffset,
double factor) |
void |
AVector.addMultiple(Index destToSource,
AVector source,
double factor)
Adds to this vector at taking values from source at the specified indexes which should map from this->source
|
void |
AVector.addMultiple(int offset,
AVector v,
double factor) |
void |
AVector.addMultiple(int offset,
AVector src,
int srcOffset,
int length,
double factor) |
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 |
AVector.addProductToArray(double factor,
int offset,
AVector other,
int otherOffset,
double[] array,
int arrayOffset,
int length) |
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) |
void |
Op.applyTo(AVector v) |
void |
IOp.applyTo(AVector v) |
void |
Op.applyTo(AVector v,
int start,
int length) |
void |
IOp.applyTo(AVector v,
int start,
int length) |
static double |
Vectorz.averageSquaredDifference(AVector a,
AVector b) |
static double |
Vectorz.averageValue(AVector v) |
int |
AVector.compareTo(AVector a) |
void |
AVector.copyTo(AVector dest,
int destOffset)
Copies a the contents of a vector to a vector at the specified offset
|
void |
AVector.copyTo(int offset,
AVector dest,
int destOffset,
int length)
Copies a subset of this vector to a vector at the specified offset
|
static Vector |
Vectorz.create(AVector vector) |
static Vector3 |
Vector3.create(AVector v) |
static Vector2 |
Vector2.create(AVector v) |
static Vector |
Vector.create(AVector a) |
static BitVector |
BitVector.create(AVector source) |
static Scalar |
Scalar.createFromVector(AVector data)
Creates a new Scalar using the elements in the specified vector.
|
static Vector |
Vector.createFromVector(AVector source,
int length)
Creates a new vector using the elements in the specified vector.
|
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createSameSize(AVector v) |
void |
Vector3.crossProduct(AVector a) |
void |
AVector.crossProduct(AVector a) |
double |
Vector3.distance(AVector v) |
double |
Vector.distance(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) |
double |
Vector3.dotProduct(AVector a) |
double |
Vector2.dotProduct(AVector a) |
double |
Vector1.dotProduct(AVector a) |
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) |
boolean |
AVector.equals(AVector v) |
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.fillIndexes(AVector v)
Fills a vector with index values
|
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
|
Scalar |
Vector.innerProduct(AVector v) |
Scalar |
AVector.innerProduct(AVector v) |
void |
AVector.interpolate(AVector a,
AVector b,
double alpha) |
void |
AVector.interpolate(AVector v,
double alpha) |
static void |
Vectorz.invSqrt(AVector v) |
boolean |
AVector.isSameShape(AVector a) |
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) |
AMatrix |
AVector.outerProduct(AVector a) |
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 |
Vector3.scaleAdd(double factor,
AVector constant) |
void |
Vector2.scaleAdd(double factor,
AVector constant) |
void |
AVector.scaleAdd(double factor,
AVector v) |
void |
Vector3.set(AVector v) |
void |
Vector.set(AVector a) |
void |
AVector.set(AVector src)
Sets the vector to equal the value of another vector
|
void |
AVector.set(AVector v,
Index indexes)
sets the vector using values indexed from another vector
|
void |
AVector.set(AVector src,
int srcOffset)
Set the vector equal to an offset into another vector
|
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) |
void |
Op.transform(AVector source,
AVector dest) |
| Modifier and Type | Method and Description |
|---|---|
static AVector |
Vectorz.join(List<AVector> vectors) |
| Constructor and Description |
|---|
GrowableVector(AVector v) |
Vector(AVector source)
Copy constructor from an arbitrary vector
|
Vector3(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
ScalarFunction.calculate(AVector input)
Calculates the result of this scalar function with the given input vector
|
void |
ScalarFunction.transform(AVector src,
AVector dest) |
| Modifier and Type | Class and Description |
|---|---|
class |
AArrayVector
Base class for vectors backed by a double[] array with a fixed stride of 1
The double array can be directly accessed for performance purposes
|
class |
ABitVector
Abstract base class for bit vectors
|
class |
AConstrainedVector |
class |
ADerivedVector
Derived vector delegates all calls to an underlying vector
|
class |
AMatrixViewVector |
class |
APrimitiveVector
Abstract base class for specialised primitive vectors
|
class |
ArraySubVector
Vector referring to an offset into a double[] array
|
class |
ASparseVector
Abstract base class for Sparse vector implementations
|
class |
AStridedVector
Abstract base class for vectors backed by a double[] array with a constant stride
The double array can be directly accessed for performance purposes
|
class |
AWrappedVector<T>
Abstract base class for vectors that wrap an underlying object
|
class |
AxisVector
Specialized unit axis vector.
|
class |
ComputedVector
Base class for computed vectors.
|
class |
IndexedArrayVector
Vector that addresses elements indexed into double[] array
|
class |
IndexedSubVector
Vector that addresses elements indexed into another source vector
|
class |
IndexVector
A constrained vector implementation wrapping an integer Index
|
class |
JoinedArrayVector
Class representing a join of one or more array subvectors
|
class |
JoinedVector
A vector that represents the concatenation of two vectors.
|
class |
MatrixBandVector
Vector class representing a matrix band
|
class |
RepeatedElementVector
A mutable vector that always has a single repeated component.
|
class |
SingleElementVector
A sparse mutable vector that has a only one element that can be non-zero.
|
class |
SparseIndexedVector
Indexed sparse vector.
|
class |
StridedVector |
class |
UnmodifiableVector |
class |
Vector0
Special singleton zero length vector class.
|
class |
WrappedScalarVector
A length 1 vector, as a view wrapping a single AScalar
Main purpose is to provide an efficient view for AScalar.asVector()
|
class |
WrappedSubVector |
class |
ZeroVector
Specialised immuatble vector containing nothing but zeros.
|
| Modifier and Type | Field and Description |
|---|---|
protected AVector |
ADerivedVector.source |
| Modifier and Type | Method and Description |
|---|---|
static AVector |
MatrixBandVector.create(AMatrix source,
int band) |
static AVector |
SparseIndexedVector.createFromRow(AMatrix m,
int row)
Creates a SparseIndexedVector from a row of an existing matrix
|
AVector |
MatrixBandVector.exactClone() |
AVector |
IndexVector.exactClone() |
AVector |
WrappedSubVector.getWrappedObject() |
AVector |
AArrayVector.join(AArrayVector v) |
AVector |
ZeroVector.join(AVector a) |
AVector |
Vector0.join(AVector v) |
AVector |
JoinedArrayVector.join(AVector v) |
AVector |
AArrayVector.join(AVector v) |
static AVector |
JoinedArrayVector.joinVectors(AArrayVector a,
AArrayVector b) |
static AVector |
JoinedVector.joinVectors(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
abstract AVector |
ASparseVector.nonSparseValues()
Returns the non-sparse values as a compacted vector view
|
AVector |
StridedVector.subVector(int start,
int length) |
AVector |
JoinedVector.subVector(int start,
int length) |
AVector |
JoinedArrayVector.subVector(int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
StridedVector.add(AVector v) |
void |
JoinedVector.add(AVector a) |
void |
JoinedArrayVector.add(AVector a) |
void |
AArrayVector.add(AVector src) |
void |
JoinedVector.add(AVector a,
int aOffset) |
void |
AArrayVector.add(AVector src,
int srcOffset) |
void |
JoinedVector.add(int offset,
AVector a) |
void |
JoinedArrayVector.add(int offset,
AVector a) |
void |
AArrayVector.add(int offset,
AVector src) |
void |
JoinedVector.add(int offset,
AVector a,
int aOffset,
int length) |
void |
JoinedArrayVector.add(int offset,
AVector a,
int aOffset,
int length) |
void |
JoinedVector.addMultiple(AVector a,
double factor) |
void |
JoinedArrayVector.addMultiple(AVector a,
double factor) |
void |
AArrayVector.addMultiple(AVector v,
double factor) |
void |
JoinedVector.addMultiple(AVector a,
int aOffset,
double factor) |
void |
JoinedArrayVector.addMultiple(int offset,
AVector a,
double factor) |
void |
JoinedArrayVector.addMultiple(int offset,
AVector a,
int aOffset,
int length,
double factor) |
void |
JoinedVector.addProduct(AVector a,
AVector b,
double factor) |
void |
JoinedArrayVector.addProduct(AVector a,
AVector b,
double factor) |
void |
AArrayVector.addProduct(AVector a,
AVector b,
double factor) |
void |
JoinedVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
JoinedArrayVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
AArrayVector.addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
SparseIndexedVector.addProductToArray(double factor,
int offset,
AVector other,
int otherOffset,
double[] array,
int arrayOffset,
int length) |
void |
AArrayVector.addProductToArray(double factor,
int offset,
AVector other,
int otherOffset,
double[] array,
int arrayOffset,
int length) |
void |
SparseIndexedVector.copyTo(AVector v,
int offset) |
void |
JoinedVector.copyTo(AVector dest,
int offset) |
void |
JoinedArrayVector.copyTo(AVector dest,
int offset) |
void |
JoinedVector.copyTo(int start,
AVector dest,
int destOffset,
int length) |
void |
AArrayVector.copyTo(int start,
AVector dest,
int destOffset,
int length) |
static SparseIndexedVector |
SparseIndexedVector.create(AVector source)
Creates a SparseIndexedVector from the given vector, ignoring the zeros
|
static JoinedArrayVector |
JoinedArrayVector.create(AVector v) |
static SparseIndexedVector |
SparseIndexedVector.create(int length,
Index index,
AVector data) |
static DoubleScalar |
DoubleScalar.createFromVector(AVector data)
Deprecated.
Creates a new Scalar using the elements in the specified vector.
|
static int |
JoinedVector.depthCalc(AVector v) |
void |
AArrayVector.divide(AVector v) |
double |
ZeroVector.dotProduct(AVector v) |
double |
StridedVector.dotProduct(AVector v) |
double |
SparseIndexedVector.dotProduct(AVector v) |
double |
JoinedVector.dotProduct(AVector v) |
double |
JoinedArrayVector.dotProduct(AVector v) |
double |
AxisVector.dotProduct(AVector v) |
double |
AArrayVector.dotProduct(AVector v) |
AVector |
ZeroVector.join(AVector a) |
AVector |
Vector0.join(AVector v) |
AVector |
JoinedArrayVector.join(AVector v) |
AVector |
AArrayVector.join(AVector v) |
static AVector |
JoinedVector.joinVectors(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
void |
SparseIndexedVector.multiply(AVector v) |
void |
AArrayVector.multiply(AVector v) |
void |
StridedVector.set(AVector v) |
void |
JoinedVector.set(AVector src) |
void |
JoinedArrayVector.set(AVector v) |
void |
AArrayVector.set(AVector a) |
void |
JoinedVector.set(AVector src,
int srcOffset) |
void |
AArrayVector.set(AVector a,
int offset) |
static IndexedSubVector |
IndexedSubVector.wrap(AVector source,
int[] indexes) |
| Constructor and Description |
|---|
ADerivedVector(AVector source) |
ListWrapper(AVector v) |
UnmodifiableVector(AVector source) |
VectorIndexScalar(AVector vector,
int index) |
VectorIterator(AVector source) |
VectorIterator(AVector source,
int start,
int length) |
WrappedSubVector(AVector source,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
Tanh.applyTo(AVector v) |
void |
Square.applyTo(AVector v) |
void |
Sqrt.applyTo(AVector a) |
void |
Signum.applyTo(AVector v) |
void |
Reciprocal.applyTo(AVector a) |
void |
Quadratic.applyTo(AVector v) |
void |
Power.applyTo(AVector a) |
void |
Offset.applyTo(AVector v) |
void |
Logistic.applyTo(AVector v) |
void |
Log.applyTo(AVector a) |
void |
Linear.applyTo(AVector v) |
void |
Identity.applyTo(AVector v) |
void |
Constant.applyTo(AVector v) |
void |
Clamp.applyTo(AVector v) |
void |
ALinearOp.applyTo(AVector v) |
void |
Absolute.applyTo(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
static AVector |
Testing.createTestVector(int length) |
static AVector |
Testing.createTestVector(int length,
mikera.util.Random r) |
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) |
static String |
ErrorMessages.wrongDestLength(AVector dest) |
static String |
ErrorMessages.wrongSourceLength(AVector source) |
Copyright © 2013. All Rights Reserved.