Uses of Class
org.flag4j.arrays.sparse.CooVector
Packages that use CooVector
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
Implementations of operations on real sparse COO (coordinate) array objects.
Implementations of operations between real and complex sparse COO (coordinate) array objects.
Pseudo-random generation of real/complex numbers, and arrays, vectors, matrices, and tensors.
-
Uses of CooVector in org.flag4j.arrays.backend.field_arrays
Methods in org.flag4j.arrays.backend.field_arrays that return CooVector -
Uses of CooVector in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooVectorModifier and TypeMethodDescriptionComputes the element-wise product of this vector and a real sparse vector.Vector.toCoo()Converts this dense tensor to an equivalent sparse COO tensor.Methods in org.flag4j.arrays.dense with parameters of type CooVectorModifier and TypeMethodDescriptionComputes the element-wise sum between two tensors of the same shape.Adds a real sparse vector to this vector.Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise product of this vector and a real sparse vector.Computes the matrix-vector multiplication between this matrix and a vector.Computes the matrix-vector product of this matrix and a real sparse vector.Computes the element-wise difference between two tensors of the same shape.Subtracts a real sparse vector from this vector. -
Uses of CooVector in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooVector in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclassA real sparse vector stored in coordinate list (COO) format.Classes in org.flag4j.arrays.sparse that implement interfaces with type arguments of type CooVectorModifier and TypeClassDescriptionclassA real sparse matrix stored in coordinate list (COO) format.classA real sparse vector stored in coordinate list (COO) format.classInstances of this class represent a real sparse matrix using the compressed sparse row (CSR) format.Methods in org.flag4j.arrays.sparse that return CooVectorModifier and TypeMethodDescriptionCooRingVector.abs()Computes the element-wise absolute value of this tensor.CooVector.add(double b) Adds a scalar value to each non-zero element of this tensor.Adds a scalar field value to each entry of this tensor.Computes the element-wise sum between two tensors of the same shape.CooVector.coalesce()Coalesces this sparse COO vector.CooVector.coalesce(BinaryOperator<Double> aggregator) Coalesces this sparse COO vector.Computes the element-wise division of two vectors.Computes the element-wise quotient between two tensors.CooVector.dropZeros()Drops any explicit zeros in this sparse COO vector.Computes the element-wise multiplication between this vector and a real dense vector.Computes the element-wise multiplication of two tensors of the same shape.CooVector.flatten()Flattens tensor to single dimension while preserving order of data.CooVector.flatten(int axis) Flattens a tensor along the specified axis.static CooVectorCreates a sparse tensor from a dense tensor.CooMatrix.getCol(int colIdx) Get the column of this matrix at the specified index.CooMatrix.getCol(int colIdx, int rowStart, int rowEnd) Gets a specified column of this matrix betweenrowStart(inclusive) androwEnd(exclusive).CsrMatrix.getCol(int colIdx) Get the column of this matrix at the specified index.CsrMatrix.getCol(int colIdx, int rowStart, int rowEnd) Gets a specified column of this matrix betweenrowStart(inclusive) androwEnd(exclusive).CooMatrix.getDiag()Extracts the diagonal elements of this matrix and returns them as a vector.CooMatrix.getDiag(int diagOffset) Gets the elements of this matrix along the specified diagonal.CsrMatrix.getDiag()Extracts the diagonal elements of this matrix and returns them as a vector.CsrMatrix.getDiag(int diagOffset) Gets the elements of this matrix along the specified diagonal.CooMatrix.getRow(int rowIdx) Get the row of this matrix at the specified index.CooMatrix.getRow(int rowIdx, int colStart, int colEnd) Gets a specified row of this matrix betweencolStart(inclusive) andcolEnd(exclusive).CsrMatrix.getRow(int rowIdx) Get the row of this matrix at the specified index.CsrMatrix.getRow(int rowIdx, int colStart, int colEnd) Gets a specified row of this matrix betweencolStart(inclusive) andcolEnd(exclusive).CooVector.H()Computes the conjugate transpose of a tensor by exchanging the first and last axes of this tensor and conjugating the exchanged values.CooVector.H(int... axes) Computes the conjugate transpose of this tensor.CooVector.H(int axis1, int axis2) Computes the conjugate transpose of a tensor by conjugating and exchangingaxis1andaxis2.Joints specified vector with this vector.CooVector.makeLikeTensor(int size, double[] data, int[] indices) Constructs a vector of the same type as this tensor with the given the shape and data.CooVector.makeLikeTensor(Shape shape, double[] data) Constructs a tensor of the same type as this tensor with the given the shape and data.CooVector.normalize()Computes a unit vector in the same direction as this vector.CooVector.recip()Computes the element-wise reciprocals of the non-zero values of this tensor.Copies and reshapes this tensor.Sets the element of this tensor at the specified indices.CooVector.sub(double b) Subtracts a scalar value non-zero from each element of this tensor.Subtracts a scalar value from each non-zero entry of this tensor.Computes the element-wise difference between two tensors of the same shape.CooVector.T()Computes the transpose of a tensor by exchanging the first and last axes of this tensor.CooVector.T(int... axes) Computes the transpose of this tensor.CooVector.T(int axis1, int axis2) Computes the transpose of a tensor by exchangingaxis1andaxis2.CooVector.tensorTr(int axis1, int axis2) Computes the generalized trace of this tensor along the specified axes.CooCVector.toReal()Converts this complex vector to a real vector.CooMatrix.toVector()Converts this matrix to an equivalent vector.CsrMatrix.toVector()Converts this matrix to an equivalent vector.static CooVectorCooVector.unsafeMake(int size, double[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.static CooVectorCooVector.unsafeMake(Shape shape, double[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.Methods in org.flag4j.arrays.sparse with parameters of type CooVectorModifier and TypeMethodDescriptionComputes the element-wise sum of two vectors.Computes the element-wise sum between two tensors of the same shape.Augments a vector to this matrix.Augments a vector to this matrix.Augments a vector to this matrix.Computes the element-wise quotient between two tensors.Computes the dot product between two vectors.Computes the element-wise multiplication of two tensors of the same shape.Computes the inner product between two vectors.booleanCooVector.isParallel(CooVector b) Checks if a vector is parallel to this vector.booleanChecks if a vector is perpendicular to this vector.Joints specified vector with this vector.Computes matrix-vector multiplication.Computes matrix-vector multiplication.Computes the outer product of two vectors.Sets a column of this matrix at the given index to the specified values.Sets a column of this matrix at the given index to the specified values.Sets a row of this matrix at the given index to the specified values.Sets a row of this matrix at the given index to the specified values.Stacks two vectors vertically as if they were row vectors to form a matrix with two rows.Stacks two vectors along specified axis.Computes the element-wise difference between two tensors of the same shape.Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.Constructors in org.flag4j.arrays.sparse with parameters of type CooVector -
Uses of CooVector in org.flag4j.linalg.ops.dense_sparse.coo.real
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real that return CooVectorModifier and TypeMethodDescriptionstatic CooVectorCompute the element-wise division between a sparse vector and a dense vector.static CooVectorComputes the element-wise multiplication of a real dense vector with a real sparse vector.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real with parameters of type CooVectorModifier and TypeMethodDescriptionstatic VectorAdds a real dense vector to a real sparse vector.static voidAdds a real dense vector to a real sparse vector and stores the result in the first vector.static CooVectorCompute the element-wise division between a sparse vector and a dense vector.static CooVectorComputes the element-wise multiplication of a real dense vector with a real sparse vector.static VectorSubtracts a real sparse vector from a real dense vector.static VectorSubtracts a real dense vector from a real sparse vector.static voidAdds a real dense vector to a real sparse vector and stores the result in the first vector. -
Uses of CooVector in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CooVectorModifier and TypeMethodDescriptionstatic CooCVectorCompute the element-wise division between a sparse vector and a dense vector.static CooCVectorComputes the element-wise multiplication of a complex dense vector with a real sparse vector.static CVectorSubtracts a real sparse vector from a complex dense vector. -
Uses of CooVector in org.flag4j.linalg.ops.dense_sparse.coo.real_field_ops
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_field_ops with parameters of type CooVectorModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractDenseFieldVector<?, ?, T> RealFieldDenseCooVectorOps.add(AbstractDenseFieldVector<?, ?, T> src1, CooVector src2) Adds a complex dense matrix to a real sparse matrix.static <T extends Field<T>>
voidRealFieldDenseCooVectorOps.addEq(AbstractDenseFieldVector<?, ?, T> src1, CooVector src2) Computes the vector addition between a dense complex vector and a sparse real vector.static <T extends Field<T>>
T[]RealFieldDenseCooVectorOps.elemMult(AbstractDenseFieldVector<?, ?, T> src1, CooVector src2) Computes the element-wise product between a denseFieldvector and a real COO vector.static <T extends Field<T>>
AbstractDenseFieldVector<?, ?, T> RealFieldDenseCooVectorOps.sub(AbstractDenseFieldVector<?, ?, T> src1, CooVector src2) Subtracts a real sparse vector from a complex dense vector.static <T extends Field<T>>
AbstractDenseFieldVector<?, ?, T> RealFieldDenseCooVectorOps.sub(CooVector src1, AbstractDenseFieldVector<?, ?, T> src2) Subtracts a complex dense vector from a complex sparse vector.static <T extends Field<T>>
voidRealFieldDenseCooVectorOps.subEq(AbstractDenseFieldVector<?, ?, T> src1, CooVector src2) Computes the vector subtraction between a dense complex vector and a real sparse vector. -
Uses of CooVector in org.flag4j.linalg.ops.sparse.coo.real
Methods in org.flag4j.linalg.ops.sparse.coo.real that return CooVectorModifier and TypeMethodDescriptionstatic CooVectorComputes the element-wise vector addition between two real sparse vectors.static CooVectorComputes the element-wise vector multiplication between two real sparse vectors.static CooVectorGets a specified column from this sparse matrix.static CooVectorGets a specified column range from this sparse matrix.static CooVectorGets a specified row from this sparse matrix.static CooVectorGets a specified row range from this sparse matrix.static CooVectorComputes the element-wise vector subtraction between two real sparse vectors.Methods in org.flag4j.linalg.ops.sparse.coo.real with parameters of type CooVectorModifier and TypeMethodDescriptionstatic VectorAdds a real number to each entry of a sparse vector, including the zero data.static CooVectorComputes the element-wise vector addition between two real sparse vectors.static MatrixRealSparseMatrixOps.addToEachCol(CooMatrix src, CooVector col) Adds a sparse vector to each column of a sparse matrix as if the vector is a column vector.static MatrixRealSparseMatrixOps.addToEachRow(CooMatrix src, CooVector row) Adds a sparse vector to each row of a sparse matrix as if the vector is a row vector.static booleanRealSparseEquals.allCloseVector(CooVector src1, CooVector src2, double relTol, double absTol) Checks that all non-zero data are "close" according toRealProperties.allClose(double[], double[])and all indices are the same.static booleanRealSparseEquals.cooVectorEquals(CooVector a, CooVector b) Checks if two real sparse vectors are real.static CooVectorComputes the element-wise vector multiplication between two real sparse vectors.static doubleComputes the inner product of two real sparse vectors.static MatrixRealCooVectorOps.outerProduct(CooVector src1, CooVector src2) Computes the vector outer product between two real sparse vectors.static CooMatrixRepeats a vectorntimes along a certain axis to create a matrix.static CooMatrixSets a column of a sparse matrix to the values in a sparse tensor.static CooMatrixSets a specified row of a real sparse COO matrix to the values in a sparse COO vector.static CooMatrixStacks two vectors along columns as if they were row vectors.static VectorSubtracts a real number from each entry of a sparse vector, including the zero data.static CooVectorComputes the element-wise vector subtraction between two real sparse vectors. -
Uses of CooVector in org.flag4j.linalg.ops.sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.sparse.coo.real_complex with parameters of type CooVectorModifier and TypeMethodDescriptionstatic CooCVectorRealComplexSparseVectorOps.add(CooCVector src1, CooVector src2) Computes the element-wise vector addition between a real sparse vector and a complex sparse vector.static CVectorRealComplexSparseVectorOps.add(CooVector src, Complex128 a) Adds a real number to each entry of a sparse vector, including the zero data.static CMatrixRealComplexSparseMatOps.addToEachCol(CooCMatrix src, CooVector col) Adds a sparse vector to each column of a sparse matrix as if the vector is a column vector.static CMatrixRealComplexSparseMatOps.addToEachRow(CooCMatrix src, CooVector row) Adds a sparse vector to each row of a sparse matrix as if the vector is a row vector.static CooCMatrixRealComplexCooConcats.augment(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCVectorRealComplexSparseVectorOps.elemMult(CooCVector src1, CooVector src2) Computes the element-wise vector multiplication between two real sparse vectors.static Complex128RealComplexSparseVectorOps.inner(CooCVector src1, CooVector src2) Computes the inner product of a real and complex sparse vector.static Complex128RealComplexSparseVectorOps.inner(CooVector src1, CooCVector src2) Computes the inner product of a real and complex sparse vector.static CMatrixRealComplexSparseVectorOps.outerProduct(CooCVector src1, CooVector src2) Computes the vector outer product between a complex sparse vector and a real sparse vector.static CMatrixRealComplexSparseVectorOps.outerProduct(CooVector src1, CooCVector src2) Computes the vector outer product between a complex sparse vector and a real sparse vector.static CooCVectorRealComplexSparseVectorOps.sub(CooCVector src1, CooVector src2) Computes the element-wise vector subtraction between a real sparse vector and a complex sparse vector.static CooCVectorRealComplexSparseVectorOps.sub(CooVector src1, CooCVector src2) Computes the element-wise vector subtraction between a real sparse vector and a complex sparse vector.static CVectorRealComplexSparseVectorOps.sub(CooVector src, Complex128 a) Subtracts a real number from each entry of a sparse vector, including the zero data.static booleanRealComplexSparseEquals.vectorEquals(CooVector a, CooCVector b) Checks if a real sparse vector and complex sparse vector are equal. -
Uses of CooVector in org.flag4j.linalg.ops.sparse.csr.real
Methods in org.flag4j.linalg.ops.sparse.csr.real with parameters of type CooVectorModifier and TypeMethodDescriptionstatic VectorRealCsrMatMult.standardVector(CsrMatrix src1, CooVector src2) Computes the matrix-vector multiplication between a real sparse CSR matrix and a real sparse COO vector. -
Uses of CooVector in org.flag4j.linalg.ops.sparse.csr.real_complex
Methods in org.flag4j.linalg.ops.sparse.csr.real_complex with parameters of type CooVectorModifier and TypeMethodDescriptionstatic CMatrixRealComplexCsrOps.addToEachCol(CsrCMatrix src1, CooVector src2) Adds a vector to each column of a matrix.static CMatrixRealComplexCsrOps.addToEachRow(CsrCMatrix src1, CooVector src2) Adds a vector to each row of a matrix.static CVectorRealComplexCsrMatMult.standardVector(CsrCMatrix src1, CooVector src2) Computes the matrix-vector multiplication between a real sparse CSR matrix and a complex sparse COO vector. -
Uses of CooVector in org.flag4j.rng
Methods in org.flag4j.rng that return CooVectorModifier and TypeMethodDescriptionRandomSparseTensor.randomCooVector(int size, double min, double max, double sparsity) Constructs a COO vector with the specified sparsity filled with pseudo-random values from a uniform distribution in [min, max).RandomSparseTensor.randomCooVector(int size, double min, double max, int nnz) Constructs a COO vector with the specified number of non-zero entries filled with pseudo-random values from a uniform distribution in [min, max).