Uses of Class
org.flag4j.arrays.sparse.CooCVector
Packages that use CooCVector
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
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 CooCVector in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooCVectorModifier 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.Methods in org.flag4j.arrays.dense with parameters of type CooCVectorModifier 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
Subclasses with type arguments of type CooCVector in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
A complex sparse matrix stored in coordinate list (COO) format.class
A complex sparse vector stored in coordinate list (COO) format.class
Instances of this class represent a complex sparse matrix using the compressed sparse row (CSR) format.Methods in org.flag4j.arrays.sparse that return CooCVectorModifier and TypeMethodDescriptionComputes the element-wise sum of two vectors.CooVector.add
(CooCVector b) Computes the element-wise sum between two tensors of the same shape.CooVector.add
(Complex128 b) Adds a scalar field value to each non-zero entry of this tensor.Computes the element-wise division of two vectors.CooVector.div
(Complex128 divisor) Divides each element of this sparse COO vector by a complex-valued scalar.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.static CooCVector
CooCVector.unsafeMake
(int size, Complex128[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.static CooCVector
CooCVector.unsafeMake
(Shape shape, Complex128[] 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 CooCVectorModifier 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.Constructors in org.flag4j.arrays.sparse with parameters of type CooCVectorModifierConstructorDescriptionConstructs a copy of the specified vector. -
Uses of CooCVector in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex that return CooCVectorModifier 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.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CooCVectorModifier 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
Methods in org.flag4j.linalg.ops.sparse.coo.real_complex that return CooCVectorModifier 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.Methods in org.flag4j.linalg.ops.sparse.coo.real_complex with parameters of type CooCVectorModifier 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
Methods in org.flag4j.linalg.ops.sparse.csr.real_complex with parameters of type CooCVectorModifier 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. -
Uses of CooCVector in org.flag4j.rng
Methods in org.flag4j.rng that return CooCVectorModifier and TypeMethodDescriptionRandomSparseTensor.randomCooCVector
(int size, double min, double max, double sparsity) Constructs a COO vector with the specified sparsity entries filled with pseudo-random values uniformly distributed in an annulus centered on the complex plane.RandomSparseTensor.randomCooCVector
(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 uniformly distributed in an annulus centered on the complex plane.