Uses of Class
org.flag4j.arrays.sparse.CooCVector
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooCVector in org.flag4j.arrays.dense
Modifier and TypeMethodDescriptionCVector.elemMult
(CooCVector b) Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise multiplication of two tensors of the same shape.Vector.elemMult
(CooCVector b) Computes the element-wise product of this vector and a complex sparse vector.protected CooCVector
CVector.makeLikeCooTensor
(Shape shape, Complex128[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.CVector.toCoo()
Converts this tensor to an equivalent sparse COO tensor.CVector.toCoo
(double estimatedSparsity) Converts this tensor to an equivalent sparse COO tensor.Modifier and TypeMethodDescriptionCVector.add
(CooCVector b) Computes the element-wise sum between two tensors of the same shape.Vector.add
(CooCVector b) Adds a complex sparse vector to this vector.CVector.elemMult
(CooCVector b) Computes the element-wise multiplication of two tensors of the same shape.Vector.elemMult
(CooCVector b) Computes the element-wise product of this vector and a complex sparse vector.CMatrix.mult
(CooCVector b) Computes the matrix-vector multiplication between this matrix and a vector.Matrix.mult
(CooCVector b) Computes the matrix-vector product of this matrix and a complex sparse vector.CVector.sub
(CooCVector b) Computes the element-wise difference between two tensors of the same shape.Vector.sub
(CooCVector b) Subtracts a complex sparse vector from this vector. -
Uses of CooCVector in org.flag4j.arrays.sparse
Modifier and TypeClassDescriptionclass
A complex sparse matrix stored in coordinate list (COO) format.class
A complex sparse vector stored in coordinate list (COO) format.class
A complex sparse matrix stored in compressed sparse row (CSR) format.Modifier and TypeMethodDescriptionComputes the element-wise sum of two vectors.CooVector.add
(Complex128 b) Adds a scalar field value to each non-zero entry of this tensor.CooVector.add
(CooCVector b) Computes the element-wise sum between two tensors of the same shape.CooVector.div
(Complex128 divisor) Divides each element of this sparse COO vector by a complex-valued scalar.Computes the element-wise division of two vectors.CsrCMatrix.getCol
(int colIdx, int start, int stop) Gets a range of a column of this matrix.CsrCMatrix.getDiag
(int diagOffset) Gets the elements of this matrix along the specified diagonal.CsrCMatrix.getRow
(int rowIdx, int start, int stop) Gets a range of a row of this matrix.CooCVector.makeLikeTensor
(Shape shape, List<Complex128> entries, List<Integer> indices) Constructs a COO vector with the specified shape, non-zero data, and non-zero indices.CooCVector.makeLikeTensor
(Shape shape, Complex128[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooCVector.makeLikeTensor
(Shape shape, Complex128[] entries, int[] indices) Constructs a sparse COO vector of the same type as this vector with the specified non-zero data and indices.CooCMatrix.makeLikeVector
(Shape shape, Complex128[] entries, int[] indices) Constructs a sparse COO vector of a similar type to this COO matrix.CooVector.mult
(Complex128 factor) Multiplies this vector by a complex scalar value.CooCVector.normalize()
Normalizes this vector to a unit length vector.CooCVector.round
(int precision) Rounds all data within this vector to the specified precision.CooCVector.roundToZero
(double tolerance) Sets all elements of this vector to zero if they are withintol
of zero.CooVector.sub
(Complex128 b) Subtracts a scalar value from each non-zero entry of this tensor.CooVector.toComplex()
Converts this vector to an equivalent sparse vector.Modifier and TypeMethodDescriptionCooVector.add
(CooCVector b) Computes the element-wise sum between two tensors of the same shape.CooCMatrix.mult
(CooCVector b) Computes the matrix-vector multiplication of a vector with this matrix.CsrCMatrix.mult
(CooCVector b) Computes the matrix-vector multiplication of a vector with this matrix.ModifierConstructorDescriptionConstructs a copy of the specified vector. -
Uses of CooCVector in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Modifier 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.Modifier and TypeMethodDescriptionstatic CVector
RealComplexDenseSparseVectorOps.add
(Vector src1, CooCVector src2) Adds a real dense matrix to a complex sparse matrix.static CVector
RealComplexDenseSparseVectorOps.sub
(Vector src1, CooCVector src2) Subtracts a complex sparse vector from a real dense vector.static CVector
RealComplexDenseSparseVectorOps.sub
(CooCVector src1, Vector src2) Subtracts a complex dense vector from a complex sparse vector. -
Uses of CooCVector in org.flag4j.linalg.ops.sparse.coo.real_complex
Modifier 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 CooCVector
RealComplexSparseVectorOps.elemMult
(CooCVector src1, CooVector src2) Computes the element-wise vector multiplication between two real sparse vectors.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 CooCVector
RealComplexSparseVectorOps.sub
(CooVector src1, CooCVector src2) Computes the element-wise vector subtraction between a real sparse vector and a complex sparse vector.Modifier and TypeMethodDescriptionstatic CVector
RealComplexSparseVectorOps.add
(CooCVector src, double a) Adds a real number to each entry of a sparse vector, including the zero data.static CooCVector
RealComplexSparseVectorOps.add
(CooCVector src1, CooVector src2) Computes the element-wise vector addition between a real sparse vector and a complex sparse vector.static CMatrix
RealComplexSparseMatOps.addToEachCol
(CooMatrix src, CooCVector col) Adds a sparse vector to each column of a sparse matrix as if the vector is a column vector.static CMatrix
RealComplexSparseMatOps.addToEachRow
(CooMatrix src, CooCVector row) Adds a sparse vector to each row of a sparse matrix as if the vector is a row vector.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 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 CooCVector in org.flag4j.linalg.ops.sparse.csr.real_complex
Modifier and TypeMethodDescriptionstatic CVector
RealComplexCsrMatMult.standardVector
(CsrMatrix src1, CooCVector src2) Computes the matrix-vector multiplication between a real sparse CSR matrix and a complex sparse COO vector.