Uses of Class
org.la4j.Vector
-
-
Uses of Vector in org.la4j
Fields in org.la4j with type parameters of type Vector Modifier and Type Field Description static MatrixVectorOperation<Vector>LinearAlgebra. OO_PLACE_MATRIX_BY_VECTOR_MULTIPLICATIONstatic VectorMatrixOperation<Vector>LinearAlgebra. OO_PLACE_VECTOR_BY_MATRIX_MULTIPLICATIONstatic VectorVectorOperation<Vector>LinearAlgebra. OO_PLACE_VECTOR_HADAMARD_PRODUCTstatic VectorVectorOperation<Vector>LinearAlgebra. OO_PLACE_VECTORS_ADDITIONstatic VectorVectorOperation<Vector>LinearAlgebra. OO_PLACE_VECTORS_SUBTRACTIONMethods in org.la4j with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TVector. to(VectorFactory<T> factory)Converts this vector using the givenfactory.Methods in org.la4j that return Vector Modifier and Type Method Description VectorVector. add(double value)Adds givenvalue(v) to this vector (X).VectorVector. add(Vector that)Adds givenvector(X) to this vector (Y).VectorVector. 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)VectorVector. copy()Copies this vector.abstract VectorVector. copyOfLength(int length)Copies this vector into the new vector with specifiedlength.VectorVector. 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(java.util.Collection<? extends java.lang.Number> list)Creates newBasicVectorfromliststatic VectorVector. fromCSV(java.lang.String csv)ParsesVectorfrom the given CSV string.static VectorVector. fromMap(java.util.Map<java.lang.Integer,? extends java.lang.Number> map, int length)Creates newSparseVectorfromliststatic VectorVector. fromMatrixMarket(java.lang.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.VectorVector. hadamardProduct(Vector that)Calculates the Hadamard (element-wise) product of this vector and giventhat.VectorMatrix. multiply(Vector that)Multiplies this matrix (A) by giventhatvector (x).VectorVector. multiply(double value)Multiplies this vector (X) by givenvalue(v).VectorVector. multiply(Matrix that)Multiples this vector (X) by giventhat(A).static VectorVector. random(int length, java.util.Random random)VectorVector. select(int[] indices)Returns a new vector with the selected elements.VectorVector. shuffle()Shuffles this vector.VectorVector. slice(int from, int until)Retrieves the specified sub-vector of this vector.VectorVector. sliceLeft(int until)Retrieves the specified sub-vector of this vector.VectorVector. sliceRight(int from)Retrieves the specified sub-vector of this vector.VectorVector. subtract(double value)Subtracts givenvalue(v) from this vector (X).VectorVector. subtract(Vector that)Subtracts giventhat(Y) from this vector (X).VectorMatrix. toColumnVector()Converts this matrix into the column vector.VectorMatrix. toRowVector()Converts this matrix into the row vector.VectorVector. 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.Methods in org.la4j with parameters of type Vector Modifier and Type Method Description VectorVector. add(Vector that)Adds 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.booleanVector. equals(Vector that, double precision)Returns true when vector is equal to giventhatvector with givenprecision.VectorVector. 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.MatrixMatrix. insertColumn(int j, Vector column)Adds one column to matrix.MatrixMatrix. insertRow(int i, Vector row)Adds one row to matrix.VectorMatrix. multiply(Vector that)Multiplies this matrix (A) by giventhatvector (x).MatrixVector. outerProduct(Vector that)Calculates the outer product of this vector and giventhat.voidMatrix. setColumn(int j, Vector column)Copies givencolumninto the specified column of this matrix.voidMatrix. setRow(int i, Vector row)Copies givenrowinto the specified row of this matrix.VectorVector. subtract(Vector that)Subtracts giventhat(Y) from this vector (X). -
Uses of Vector in org.la4j.decomposition
Methods in org.la4j.decomposition that return Vector Modifier and Type Method Description private VectorEigenDecompositor. generateR(Matrix matrix)Methods in org.la4j.decomposition with parameters of type Vector Modifier and Type Method Description private intEigenDecompositor. findMax(Vector vector)private voidEigenDecompositor. hqr2(Matrix H, Matrix V, Vector d, Vector e)private voidEigenDecompositor. orthes(Matrix h, Matrix v, Vector ort) -
Uses of Vector in org.la4j.linear
Methods in org.la4j.linear that return Vector Modifier and Type Method Description VectorForwardBackSubstitutionSolver. solve(Vector b)VectorGaussianSolver. solve(Vector b)VectorJacobiSolver. solve(Vector b)VectorLeastNormSolver. solve(Vector b)VectorLeastSquaresSolver. solve(Vector b)VectorLinearSystemSolver. solve(Vector b)Solves the system A*x = b.VectorSeidelSolver. solve(Vector b)VectorSquareRootSolver. solve(Vector b)VectorSweepSolver. solve(Vector b)Methods in org.la4j.linear with parameters of type Vector Modifier and Type Method Description private voidGaussianSolver. backSubstitution(Matrix matrix, Vector result)protected voidAbstractSolver. ensureRHSIsCorrect(Vector vector)VectorForwardBackSubstitutionSolver. solve(Vector b)VectorGaussianSolver. solve(Vector b)VectorJacobiSolver. solve(Vector b)VectorLeastNormSolver. solve(Vector b)VectorLeastSquaresSolver. solve(Vector b)VectorLinearSystemSolver. solve(Vector b)Solves the system A*x = b.VectorSeidelSolver. solve(Vector b)VectorSquareRootSolver. solve(Vector b)VectorSweepSolver. solve(Vector b) -
Uses of Vector in org.la4j.matrix
Methods in org.la4j.matrix that return Vector Modifier and Type Method Description VectorDenseMatrix. getColumn(int j)VectorSparseMatrix. getColumn(int j)VectorDenseMatrix. getRow(int i)VectorSparseMatrix. getRow(int i)Methods in org.la4j.matrix with parameters of type Vector Modifier and Type Method Description <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 Modifier and Type Method Description VectorBasic1DMatrix. getRow(int i)VectorBasic2DMatrix. getRow(int i) -
Uses of Vector in org.la4j.matrix.sparse
Methods in org.la4j.matrix.sparse that return Vector Modifier and Type Method Description VectorCCSMatrix. getColumn(int j)VectorCRSMatrix. getColumn(int j)VectorCCSMatrix. getRow(int i)VectorCRSMatrix. getRow(int i) -
Uses of Vector in org.la4j.operation
Methods in org.la4j.operation with parameters of type Vector Modifier and Type Method Description (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
Methods in org.la4j.operation.ooplace that return Vector Modifier and Type Method Description VectorOoPlaceMatrixByVectorMultiplication. apply(ColumnMajorSparseMatrix a, DenseVector b)VectorOoPlaceMatrixByVectorMultiplication. apply(ColumnMajorSparseMatrix a, SparseVector b)VectorOoPlaceMatrixByVectorMultiplication. apply(DenseMatrix a, DenseVector b)VectorOoPlaceMatrixByVectorMultiplication. apply(DenseMatrix a, SparseVector b)VectorOoPlaceMatrixByVectorMultiplication. apply(RowMajorSparseMatrix a, DenseVector b)VectorOoPlaceMatrixByVectorMultiplication. apply(RowMajorSparseMatrix a, SparseVector b)VectorOoPlaceVectorByMatrixMultiplication. apply(DenseVector a, ColumnMajorSparseMatrix b)VectorOoPlaceVectorByMatrixMultiplication. apply(DenseVector a, DenseMatrix b)VectorOoPlaceVectorByMatrixMultiplication. apply(DenseVector a, RowMajorSparseMatrix b)VectorOoPlaceVectorByMatrixMultiplication. apply(SparseVector a, ColumnMajorSparseMatrix b)VectorOoPlaceVectorByMatrixMultiplication. apply(SparseVector a, DenseMatrix b)VectorOoPlaceVectorByMatrixMultiplication. apply(SparseVector a, RowMajorSparseMatrix b)VectorOoPlaceVectorHadamardProduct. apply(DenseVector a, DenseVector b)VectorOoPlaceVectorHadamardProduct. apply(SparseVector a, SparseVector b)VectorOoPlaceVectorsAddition. apply(DenseVector a, DenseVector b)VectorOoPlaceVectorsAddition. apply(SparseVector a, SparseVector b)VectorOoPlaceVectorsSubtraction. apply(DenseVector a, DenseVector b)VectorOoPlaceVectorsSubtraction. apply(DenseVector a, SparseVector b)VectorOoPlaceVectorsSubtraction. apply(SparseVector a, DenseVector b)VectorOoPlaceVectorsSubtraction. apply(SparseVector a, SparseVector b)VectorOoPlaceVectorHadamardProduct. applySymmetric(DenseVector a, SparseVector b)VectorOoPlaceVectorsAddition. applySymmetric(DenseVector a, SparseVector b)Methods in org.la4j.operation.ooplace with parameters of type Vector Modifier and Type Method Description private VectorFunctionOoPlaceInnerProduct. dot(Vector b)voidOoPlaceInnerProduct. 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 Vector Modifier and Type Class Description classVectorFactory<T extends Vector>An abstract vector factory.Subclasses of Vector in org.la4j.vector Modifier and Type Class Description classDenseVectorA dense vector.classSparseVectorA sparse vector.Methods in org.la4j.vector with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TSparseVector. to(VectorFactory<T> factory)Methods in org.la4j.vector that return Vector Modifier and Type Method Description VectorSparseVector. add(double value)VectorSparseVector. multiply(double value)Methods in org.la4j.vector with parameters of type Vector Modifier and Type Method Description <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.dense Modifier and Type Class Description classBasicVectorA basic dense vector implementation using an array.Methods in org.la4j.vector.dense with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TBasicVector. to(VectorFactory<T> factory)Methods in org.la4j.vector.dense that return Vector Modifier and Type Method Description VectorBasicVector. blankOfLength(int length)VectorBasicVector. copyOfLength(int length) -
Uses of Vector in org.la4j.vector.sparse
Subclasses of Vector in org.la4j.vector.sparse Modifier and Type Class Description classCompressedVectorA basic sparse vector implementation using underlying value and index arrays.Methods in org.la4j.vector.sparse with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TCompressedVector. to(VectorFactory<T> factory)Methods in org.la4j.vector.sparse that return Vector Modifier and Type Method Description VectorCompressedVector. blankOfLength(int length)VectorCompressedVector. copyOfLength(int length)
-