Uses of Class
org.la4j.Vector
Packages that use Vector
Package
Description
-
Uses of Vector in org.la4j
Modifier and TypeFieldDescriptionstatic final MatrixVectorOperation
<Vector> LinearAlgebra.OO_PLACE_MATRIX_BY_VECTOR_MULTIPLICATION
static final VectorMatrixOperation
<Vector> LinearAlgebra.OO_PLACE_VECTOR_BY_MATRIX_MULTIPLICATION
static final VectorVectorOperation
<Vector> LinearAlgebra.OO_PLACE_VECTOR_HADAMARD_PRODUCT
static final VectorVectorOperation
<Vector> LinearAlgebra.OO_PLACE_VECTORS_ADDITION
static final VectorVectorOperation
<Vector> LinearAlgebra.OO_PLACE_VECTORS_SUBTRACTION
Modifier and TypeMethodDescription<T extends Vector>
TVector.to
(VectorFactory<T> factory) Converts this vector using the givenfactory
.Modifier and TypeMethodDescriptionVector.add
(double value) Adds givenvalue
(v) to this vector (X).Adds givenvector
(X) to this vector (Y).Vector.blank()
Creates a blank (an empty vector with same length) copy of this vector.abstract Vector
Vector.blankOfLength
(int length) Creates a blank (an empty vector) copy of this vector with the givenlength
.static Vector
Vector.constant
(int length, double value) Vector.copy()
Copies this vector.abstract Vector
Vector.copyOfLength
(int length) Copies this vector into the new vector with specifiedlength
.Vector.divide
(double value) Divides this vector (X) by givenvalue
(v).static Vector
Vector.fromArray
(double[] array) Creates a newVector
from the givenarray
w/o copying the underlying array.static Vector
Vector.fromCollection
(Collection<? extends Number> list) Creates newBasicVector
fromlist
static Vector
ParsesVector
from the given CSV string.static Vector
Creates newSparseVector
fromlist
static Vector
Vector.fromMatrixMarket
(String mm) ParsesVector
from the given Matrix Market string.abstract Vector
Matrix.getColumn
(int j) Copies the specified column of this matrix into the vector.abstract Vector
Matrix.getRow
(int i) Copies the specified row of this matrix into the vector.Vector.hadamardProduct
(Vector that) Calculates the Hadamard (element-wise) product of this vector and giventhat
.Multiplies this matrix (A) by giventhat
vector (x).Vector.multiply
(double value) Multiplies this vector (X) by givenvalue
(v).Multiples this vector (X) by giventhat
(A).static Vector
Vector.select
(int[] indices) Returns a new vector with the selected elements.Vector.shuffle()
Shuffles this vector.Vector.slice
(int from, int until) Retrieves the specified sub-vector of this vector.Vector.sliceLeft
(int until) Retrieves the specified sub-vector of this vector.Vector.sliceRight
(int from) Retrieves the specified sub-vector of this vector.Vector.subtract
(double value) Subtracts givenvalue
(v) from this vector (X).Subtracts giventhat
(Y) from this vector (X).Matrix.toColumnVector()
Converts this matrix into the column vector.Matrix.toRowVector()
Converts this matrix into the row vector.Vector.transform
(VectorFunction function) Builds a new vector by applying givenfunction
to each element of this vector.static Vector
Vector.unit
(int length) Creates an unitVector
of the givenlength
.static Vector
Vector.zero
(int length) Creates a zeroVector
of the givenlength
.Modifier and TypeMethodDescriptionAdds givenvector
(X) to this vector (Y).abstract <T> T
Matrix.apply
(MatrixVectorOperation<T> operation, Vector that) Pipes this matrix to a givenoperation
.abstract <T> T
Vector.apply
(VectorVectorOperation<T> operation, Vector that) Pipes this vector to a givenoperation
.boolean
Returns true when vector is equal to giventhat
vector with givenprecision
.Vector.hadamardProduct
(Vector that) Calculates the Hadamard (element-wise) product of this vector and giventhat
.double
Vector.innerProduct
(Vector that) Calculates the inner product of this vector and giventhat
.Matrix.insertColumn
(int j, Vector column) Adds one column to matrix.Adds one row to matrix.Multiplies this matrix (A) by giventhat
vector (x).Vector.outerProduct
(Vector that) Calculates the outer product of this vector and giventhat
.void
Copies givencolumn
into the specified column of this matrix.void
Copies givenrow
into the specified row of this matrix.Subtracts giventhat
(Y) from this vector (X). -
Uses of Vector in org.la4j.decomposition
Methods in org.la4j.decomposition that return VectorMethods in org.la4j.decomposition with parameters of type Vector -
Uses of Vector in org.la4j.linear
Methods in org.la4j.linear that return VectorModifier and TypeMethodDescriptionSolves the system A*x = b.Methods in org.la4j.linear with parameters of type VectorModifier and TypeMethodDescriptionprivate void
GaussianSolver.backSubstitution
(Matrix matrix, Vector result) protected void
AbstractSolver.ensureRHSIsCorrect
(Vector vector) Solves the system A*x = b. -
Uses of Vector in org.la4j.matrix
Methods in org.la4j.matrix that return VectorModifier and TypeMethodDescriptionDenseMatrix.getColumn
(int j) SparseMatrix.getColumn
(int j) DenseMatrix.getRow
(int i) SparseMatrix.getRow
(int i) Methods in org.la4j.matrix with parameters of type VectorModifier and TypeMethodDescription<T> T
ColumnMajorSparseMatrix.apply
(MatrixVectorOperation<T> operation, Vector that) <T> T
DenseMatrix.apply
(MatrixVectorOperation<T> operation, Vector that) <T> T
RowMajorSparseMatrix.apply
(MatrixVectorOperation<T> operation, Vector that) -
Uses of Vector in org.la4j.matrix.dense
Methods in org.la4j.matrix.dense that return Vector -
Uses of Vector in org.la4j.matrix.sparse
Methods in org.la4j.matrix.sparse that return Vector -
Uses of Vector in org.la4j.operation
Methods in org.la4j.operation with parameters of type VectorModifier and TypeMethodDescription(package private) abstract R
CommonVectorOperation.applyCommon
(Vector a) abstract R
CommonVectorVectorOperation.applyCommon
(Vector a, Vector b) void
MatrixVectorOperation.ensureApplicableTo
(Matrix a, Vector b) void
VectorMatrixOperation.ensureApplicableTo
(Vector a, Matrix b) void
VectorOperation.ensureApplicableTo
(Vector a) void
VectorVectorOperation.ensureApplicableTo
(Vector a, Vector b) -
Uses of Vector in org.la4j.operation.ooplace
Methods in org.la4j.operation.ooplace that return VectorModifier and TypeMethodDescriptionOoPlaceMatrixByVectorMultiplication.apply
(ColumnMajorSparseMatrix a, DenseVector b) OoPlaceMatrixByVectorMultiplication.apply
(ColumnMajorSparseMatrix a, SparseVector b) OoPlaceMatrixByVectorMultiplication.apply
(DenseMatrix a, DenseVector b) OoPlaceMatrixByVectorMultiplication.apply
(DenseMatrix a, SparseVector b) OoPlaceMatrixByVectorMultiplication.apply
(RowMajorSparseMatrix a, DenseVector b) OoPlaceMatrixByVectorMultiplication.apply
(RowMajorSparseMatrix a, SparseVector b) OoPlaceVectorByMatrixMultiplication.apply
(DenseVector a, ColumnMajorSparseMatrix b) OoPlaceVectorByMatrixMultiplication.apply
(DenseVector a, DenseMatrix b) OoPlaceVectorByMatrixMultiplication.apply
(DenseVector a, RowMajorSparseMatrix b) OoPlaceVectorByMatrixMultiplication.apply
(SparseVector a, ColumnMajorSparseMatrix b) OoPlaceVectorByMatrixMultiplication.apply
(SparseVector a, DenseMatrix b) OoPlaceVectorByMatrixMultiplication.apply
(SparseVector a, RowMajorSparseMatrix b) OoPlaceVectorHadamardProduct.apply
(DenseVector a, DenseVector b) OoPlaceVectorHadamardProduct.apply
(SparseVector a, SparseVector b) OoPlaceVectorsAddition.apply
(DenseVector a, DenseVector b) OoPlaceVectorsAddition.apply
(SparseVector a, SparseVector b) OoPlaceVectorsSubtraction.apply
(DenseVector a, DenseVector b) OoPlaceVectorsSubtraction.apply
(DenseVector a, SparseVector b) OoPlaceVectorsSubtraction.apply
(SparseVector a, DenseVector b) OoPlaceVectorsSubtraction.apply
(SparseVector a, SparseVector b) OoPlaceVectorHadamardProduct.applySymmetric
(DenseVector a, SparseVector b) OoPlaceVectorsAddition.applySymmetric
(DenseVector a, SparseVector b) Methods in org.la4j.operation.ooplace with parameters of type VectorModifier and TypeMethodDescriptionprivate VectorFunction
void
OoPlaceInnerProduct.ensureApplicableTo
(Vector a, Vector b) void
OoPlaceMatrixByVectorMultiplication.ensureApplicableTo
(Matrix a, Vector b) void
OoPlaceVectorByMatrixMultiplication.ensureApplicableTo
(Vector a, Matrix b) void
OoPlaceVectorHadamardProduct.ensureApplicableTo
(Vector a, Vector b) void
OoPlaceVectorsAddition.ensureApplicableTo
(Vector a, Vector b) void
OoPlaceVectorsSubtraction.ensureApplicableTo
(Vector a, Vector b) -
Uses of Vector in org.la4j.vector
Classes in org.la4j.vector with type parameters of type VectorModifier and TypeClassDescriptionclass
VectorFactory<T extends Vector>
An abstract vector factory.Subclasses of Vector in org.la4j.vectorModifier and TypeClassDescriptionclass
A dense vector.class
A sparse vector.Methods in org.la4j.vector with type parameters of type VectorMethods in org.la4j.vector that return VectorModifier and TypeMethodDescriptionSparseVector.add
(double value) SparseVector.multiply
(double value) Methods in org.la4j.vector with parameters of type VectorModifier and TypeMethodDescription<T> T
DenseVector.apply
(VectorVectorOperation<T> operation, Vector that) <T> T
SparseVector.apply
(VectorVectorOperation<T> operation, Vector that) -
Uses of Vector in org.la4j.vector.dense
Subclasses of Vector in org.la4j.vector.denseModifier and TypeClassDescriptionclass
A basic dense vector implementation using an array.Methods in org.la4j.vector.dense with type parameters of type VectorMethods in org.la4j.vector.dense that return VectorModifier and TypeMethodDescriptionBasicVector.blankOfLength
(int length) BasicVector.copyOfLength
(int length) -
Uses of Vector in org.la4j.vector.sparse
Subclasses of Vector in org.la4j.vector.sparseModifier and TypeClassDescriptionclass
A basic sparse vector implementation using underlying value and index arrays.Methods in org.la4j.vector.sparse with type parameters of type VectorModifier and TypeMethodDescription<T extends Vector>
TCompressedVector.to
(VectorFactory<T> factory) Methods in org.la4j.vector.sparse that return VectorModifier and TypeMethodDescriptionCompressedVector.blankOfLength
(int length) CompressedVector.copyOfLength
(int length)