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_MULTIPLICATIONstatic final VectorMatrixOperation<Vector> LinearAlgebra.OO_PLACE_VECTOR_BY_MATRIX_MULTIPLICATIONstatic final VectorVectorOperation<Vector> LinearAlgebra.OO_PLACE_VECTOR_HADAMARD_PRODUCTstatic final VectorVectorOperation<Vector> LinearAlgebra.OO_PLACE_VECTORS_ADDITIONstatic final VectorVectorOperation<Vector> LinearAlgebra.OO_PLACE_VECTORS_SUBTRACTIONModifier 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 VectorVector.blankOfLength(int length) Creates a blank (an empty vector) copy of this vector with the givenlength.static VectorVector.constant(int length, double value) Vector.copy()Copies this vector.abstract VectorVector.copyOfLength(int length) Copies this vector into the new vector with specifiedlength.Vector.divide(double value) Divides this vector (X) by givenvalue(v).static VectorVector.fromArray(double[] array) Creates a newVectorfrom the givenarrayw/o copying the underlying array.static VectorVector.fromCollection(Collection<? extends Number> list) Creates newBasicVectorfromliststatic VectorParsesVectorfrom the given CSV string.static VectorCreates newSparseVectorfromliststatic VectorVector.fromMatrixMarket(String mm) ParsesVectorfrom the given Matrix Market string.abstract VectorMatrix.getColumn(int j) Copies the specified column of this matrix into the vector.abstract VectorMatrix.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 giventhatvector (x).Vector.multiply(double value) Multiplies this vector (X) by givenvalue(v).Multiples this vector (X) by giventhat(A).static VectorVector.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 givenfunctionto each element of this vector.static VectorVector.unit(int length) Creates an unitVectorof the givenlength.static VectorVector.zero(int length) Creates a zeroVectorof the givenlength.Modifier and TypeMethodDescriptionAdds givenvector(X) to this vector (Y).abstract <T> TMatrix.apply(MatrixVectorOperation<T> operation, Vector that) Pipes this matrix to a givenoperation.abstract <T> TVector.apply(VectorVectorOperation<T> operation, Vector that) Pipes this vector to a givenoperation.booleanReturns true when vector is equal to giventhatvector with givenprecision.Vector.hadamardProduct(Vector that) Calculates the Hadamard (element-wise) product of this vector and giventhat.doubleVector.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 giventhatvector (x).Vector.outerProduct(Vector that) Calculates the outer product of this vector and giventhat.voidCopies givencolumninto the specified column of this matrix.voidCopies givenrowinto 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 voidGaussianSolver.backSubstitution(Matrix matrix, Vector result) protected voidAbstractSolver.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> TColumnMajorSparseMatrix.apply(MatrixVectorOperation<T> operation, Vector that) <T> TDenseMatrix.apply(MatrixVectorOperation<T> operation, Vector that) <T> TRowMajorSparseMatrix.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 RCommonVectorOperation.applyCommon(Vector a) abstract RCommonVectorVectorOperation.applyCommon(Vector a, Vector b) voidMatrixVectorOperation.ensureApplicableTo(Matrix a, Vector b) voidVectorMatrixOperation.ensureApplicableTo(Vector a, Matrix b) voidVectorOperation.ensureApplicableTo(Vector a) voidVectorVectorOperation.ensureApplicableTo(Vector a, Vector b) -
Uses of Vector in org.la4j.operation.ooplace
Subclasses with type arguments of type Vector in org.la4j.operation.ooplaceModifier and TypeClassDescriptionclassclassclassclassclassMethods 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 VectorFunctionvoidOoPlaceInnerProduct.ensureApplicableTo(Vector a, Vector b) voidOoPlaceMatrixByVectorMultiplication.ensureApplicableTo(Matrix a, Vector b) voidOoPlaceVectorByMatrixMultiplication.ensureApplicableTo(Vector a, Matrix b) voidOoPlaceVectorHadamardProduct.ensureApplicableTo(Vector a, Vector b) voidOoPlaceVectorsAddition.ensureApplicableTo(Vector a, Vector b) voidOoPlaceVectorsSubtraction.ensureApplicableTo(Vector a, Vector b) -
Uses of Vector in org.la4j.vector
Classes in org.la4j.vector with type parameters of type VectorModifier and TypeClassDescriptionclassVectorFactory<T extends Vector>An abstract vector factory.Subclasses of Vector in org.la4j.vectorModifier and TypeClassDescriptionclassA dense vector.classA 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> TDenseVector.apply(VectorVectorOperation<T> operation, Vector that) <T> TSparseVector.apply(VectorVectorOperation<T> operation, Vector that) -
Uses of Vector in org.la4j.vector.dense
Subclasses of Vector in org.la4j.vector.denseModifier and TypeClassDescriptionclassA 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 TypeClassDescriptionclassA 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)