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.
-
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 TypeClassDescriptionclass
A 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 TypeClassDescriptionclass
A real sparse matrix stored in coordinate list (COO) format.class
A real sparse vector stored in coordinate list (COO) format.class
Instances 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 CooVector
Creates 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 exchangingaxis1
andaxis2
.Joints specified vector with this vector.CooVector.makeLikeTensor
(int size, double[] entries, int[] indices) Constructs a vector of the same type as this tensor with the given the shape and data.CooVector.makeLikeTensor
(Shape shape, double[] entries) 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 exchangingaxis1
andaxis2
.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.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.boolean
CooVector.isParallel
(CooVector b) Checks if a vector is parallel to this vector.boolean
Checks 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 CooVector
Compute the element-wise division between a sparse vector and a dense vector.static CooVector
Computes 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 Vector
Adds a real dense vector to a real sparse vector.static void
Adds a real dense vector to a real sparse vector and stores the result in the first vector.static CooVector
Compute the element-wise division between a sparse vector and a dense vector.static CooVector
Computes the element-wise multiplication of a real dense vector with a real sparse vector.static Vector
Subtracts a real sparse vector from a real dense vector.static Vector
Subtracts a real dense vector from a real sparse vector.static void
Adds 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 CooCVector
Compute the element-wise division between a sparse vector and a dense vector.static CooCVector
Computes the element-wise multiplication of a complex dense vector with a real sparse vector.static CVector
Subtracts 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 denseField
vector 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 CooVector
Computes the element-wise vector addition between two real sparse vectors.static CooVector
Computes the element-wise vector multiplication between two real sparse vectors.static CooVector
Gets a specified column from this sparse matrix.static CooVector
Gets a specified column range from this sparse matrix.static CooVector
Gets a specified row from this sparse matrix.static CooVector
Gets a specified row range from this sparse matrix.static CooVector
Computes 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 Vector
Adds a real number to each entry of a sparse vector, including the zero data.static CooVector
Computes the element-wise vector addition between two real sparse vectors.static Matrix
RealSparseMatrixOps.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 Matrix
RealSparseMatrixOps.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 boolean
RealSparseEquals.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 boolean
RealSparseEquals.cooVectorEquals
(CooVector a, CooVector b) Checks if two real sparse vectors are real.static CooVector
Computes the element-wise vector multiplication between two real sparse vectors.static double
Computes the inner product of two real sparse vectors.static Matrix
RealCooVectorOps.outerProduct
(CooVector src1, CooVector src2) Computes the vector outer product between two real sparse vectors.static CooMatrix
Repeats a vectorn
times along a certain axis to create a matrix.static CooMatrix
Sets a column of a sparse matrix to the values in a sparse tensor.static CooMatrix
Sets a specified row of a real sparse COO matrix to the values in a sparse COO vector.static CooMatrix
Stacks two vectors along columns as if they were row vectors.static Vector
Subtracts a real number from each entry of a sparse vector, including the zero data.static CooVector
Computes 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 CooCVector
RealComplexSparseVectorOps.add
(CooCVector src1, CooVector src2) Computes the element-wise vector addition between a real sparse vector and a complex sparse vector.static CVector
RealComplexSparseVectorOps.add
(CooVector src, Complex128 a) Adds a real number to each entry of a sparse vector, including the zero data.static CMatrix
RealComplexSparseMatOps.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 CMatrix
RealComplexSparseMatOps.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 CooCMatrix
RealComplexCooConcats.augment
(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCVector
RealComplexSparseVectorOps.elemMult
(CooCVector src1, CooVector src2) Computes the element-wise vector multiplication between two real sparse vectors.static Complex128
RealComplexSparseVectorOps.inner
(CooCVector src1, CooVector src2) Computes the inner product of a real and complex sparse vector.static Complex128
RealComplexSparseVectorOps.inner
(CooVector src1, CooCVector src2) Computes the inner product of a real and complex sparse vector.static CMatrix
RealComplexSparseVectorOps.outerProduct
(CooCVector src1, CooVector src2) Computes the vector outer product between a complex sparse vector and a real sparse vector.static CMatrix
RealComplexSparseVectorOps.outerProduct
(CooVector src1, CooCVector src2) Computes the vector outer product between a complex sparse vector and a real sparse vector.static CooCVector
RealComplexSparseVectorOps.sub
(CooCVector src1, CooVector src2) Computes the element-wise vector subtraction between a real sparse vector and a complex sparse vector.static CVector
RealComplexSparseVectorOps.sub
(CooVector src, Complex128 a) Subtracts a real number from each entry of a sparse vector, including the zero data.static CooCVector
RealComplexSparseVectorOps.sub
(CooVector src1, CooCVector src2) Computes the element-wise vector subtraction between a real sparse vector and a complex sparse vector.static boolean
RealComplexSparseEquals.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 Vector
RealCsrMatMult.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 CMatrix
RealComplexCsrOps.addToEachCol
(CsrCMatrix src1, CooVector src2) Adds a vector to each column of a matrix.static CMatrix
RealComplexCsrOps.addToEachRow
(CsrCMatrix src1, CooVector src2) Adds a vector to each row of a matrix.static CVector
RealComplexCsrMatMult.standardVector
(CsrCMatrix src1, CooVector src2) Computes the matrix-vector multiplication between a real sparse CSR matrix and a complex sparse COO vector.