Uses of Class
org.flag4j.arrays.sparse.CooCMatrix
Packages that use CooCMatrix
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
This package contains classes for Pseudo-random generation of real/complex numbers, and arrays, vectors,
matrices, and tensors.
-
Uses of CooCMatrix in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with parameters of type CooCMatrixModifier and TypeMethodDescriptionMatrixMixin
<?, ?, ?, ?> AddVisitor.visit
(CooCMatrix matrix) MatrixMixin
<?, ?, ?, ?> DivVisitor.visit
(CooCMatrix matrix) MatrixMixin
<?, ?, ?, ?> ElemMultVisitor.visit
(CooCMatrix matrix) MatrixMixin
<?, ?, ?, ?> MatMultVisitor.visit
(CooCMatrix matrix) abstract T
MatrixVisitor.visit
(CooCMatrix matrix) MatrixMixin
<?, ?, ?, ?> SubVisitor.visit
(CooCMatrix matrix) -
Uses of CooCMatrix in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooCMatrixModifier and TypeMethodDescriptionCMatrix.elemMult
(CooCMatrix 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.Matrix.elemMult
(CooCMatrix b) Computes the element-wise product of two matrices.protected CooCMatrix
CMatrix.makeLikeCooMatrix
(Shape shape, Complex128[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix which is of a similar type as this dense matrix.protected CooCMatrix
CMatrix.makeLikeCooTensor
(Shape shape, Complex128[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.CMatrix.toCoo()
Converts this matrix to an equivalent sparse COO matrix.CMatrix.toCoo
(double estimatedSparsity) Converts this matrix to an equivalent sparse COO matrix.Methods in org.flag4j.arrays.dense with parameters of type CooCMatrixModifier and TypeMethodDescriptionCMatrix.add
(CooCMatrix b) Computes the element-wise sum between two tensors of the same shape.Matrix.add
(CooCMatrix b) Sums this matrix with a real sparse COO matrix.CMatrix.elemMult
(CooCMatrix b) Computes the element-wise multiplication of two tensors of the same shape.Matrix.elemMult
(CooCMatrix b) Computes the element-wise product of two matrices.CMatrix.mult
(CooCMatrix b) Computes the matrix multiplication between two matrices.Matrix.mult
(CooCMatrix b) Computes the matrix multiplication between this matrix and a complex sparse COO matrix.CMatrix.sub
(CooCMatrix b) Computes the element-wise difference between two tensors of the same shape.Matrix.sub
(CooCMatrix b) Computes the difference of this matrix with a real sparse COO matrix. -
Uses of CooCMatrix in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooCMatrix 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.Methods in org.flag4j.arrays.sparse that return CooCMatrixModifier and TypeMethodDescriptionCooMatrix.add
(Complex128 b) Adds a scalar value to each non-zero element of this tensor.Augments a real COO matrix to this matrix.Augments a vector to this matrix.Computes the element-wise multiplication between two matrices of the same shape.Computes the element-wise multiplication between two matrices of the same shape.Computes the element-wise multiplication between this tensor and a real COO matrix.Computes the element-wise product between two matrices.CooMatrix.elemMult
(CooCMatrix b) Computes the element-wise product between two matrices.CsrCMatrix.makeLikeCooMatrix
(Shape shape, Complex128[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix of a similar type to this sparse CSR matrix.CooCVector.makeLikeMatrix
(Shape shape, Complex128[] entries, int[] rowIndices, int[] colIndices) Constructs a COO matrix with the specified shape, non-zero data, and row and column indices.CooCMatrix.makeLikeTensor
(Shape shape, List<Complex128> entries, List<Integer> rowIndices, List<Integer> colIndices) Constructs a COO matrix with the specified shape, non-zero data, and non-zero indices.CooCMatrix.makeLikeTensor
(Shape shape, Complex128[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooCMatrix.makeLikeTensor
(Shape shape, Complex128[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO tensor of the same type as this tensor with the specified non-zero data and indices.CooCMatrix.round
(int precision) Rounds all data within this matrix to the specified precision.CooCMatrix.roundToZero
(double tolerance) Sets all elements of this matrix to zero if they are withintol
of zero.CooCMatrix.set
(double value, int row, int col) Sets an index of this matrix to the specified value.Computes the element-wise difference to two matrices.CooMatrix.sub
(Complex128 b) Subtracts a scalar value from each non-zero element of this tensor.CooMatrix.toComplex()
Converts this real sparse COO matrix to an equivalent complex sparse COO matrix.CsrCMatrix.toCoo()
Converts this sparse CSR matrix to an equivalent sparse COO matrix.Converts this tensor to a matrix with specified shape.Methods in org.flag4j.arrays.sparse with parameters of type CooCMatrixModifier and TypeMethodDescriptionCooMatrix.elemMult
(CooCMatrix b) Computes the element-wise product between two matrices.CooMatrix.mult
(CooCMatrix b) Computes the matrix multiplication between two matrices.CooCMatrix.tensorDot
(CooCMatrix src2, int[] aAxes, int[] bAxes) 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 CooCMatrixModifierConstructorDescriptionConstructs a copy of the specified complex sparse COO matrix. -
Uses of CooCMatrix in org.flag4j.linalg
Methods in org.flag4j.linalg that return CooCMatrixModifier and TypeMethodDescriptionstatic CooCMatrix
DirectSum.directSum
(CooCMatrix A, CMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, Matrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, CooMatrix B) Computes the direct sum of two matrices.static CooCMatrix
Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, Matrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CooMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.Methods in org.flag4j.linalg with parameters of type CooCMatrixModifier and TypeMethodDescriptionstatic CMatrix
DirectSum.directSum
(CMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CMatrix
DirectSum.directSum
(Matrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, CMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, Matrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooCMatrix A, CooMatrix B) Computes the direct sum of two matrices.static CooCMatrix
DirectSum.directSum
(CooMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CMatrix
DirectSum.invDirectSum
(CMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CMatrix
DirectSum.invDirectSum
(Matrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, Matrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooCMatrix A, CooMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrix
DirectSum.invDirectSum
(CooMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static double
MatrixNorms.maxNorm
(CooCMatrix src) Computes the max norm of a matrix.static double
MatrixNorms.norm
(CooCMatrix src) Computes the Frobenius (L2, 2) norm of this complex COO matrix.static double
MatrixNorms.norm
(CooCMatrix src, double p, double q) Computes the Lp, q norm of a complex COO matrix. -
Uses of CooCMatrix in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex that return CooCMatrixModifier and TypeMethodDescriptionstatic CooCMatrix
Computes the element-wise division between a real sparse matrix and a complex dense matrix.static CooCMatrix
Computes the element-wise multiplication between a complex dense matrix and a real sparse matrix.static CooCMatrix
RealComplexDenseCooMatOps.elemMult
(Matrix src1, CooCMatrix src2) Computes the element-wise multiplication between a complex dense matrix and a real sparse matrix.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CooCMatrixModifier and TypeMethodDescriptionstatic CMatrix
RealComplexDenseCooMatOps.add
(Matrix src1, CooCMatrix src2) Adds a real dense matrix to a complex sparse matrix.static CooCMatrix
RealComplexDenseCooMatOps.elemMult
(Matrix src1, CooCMatrix src2) Computes the element-wise multiplication between a complex dense matrix and a real sparse matrix.static boolean
RealComplexDenseSparseEquals.matrixEquals
(Matrix A, CooCMatrix B) Checks if a real dense matrix is equal to a sparse complex matrix.static CMatrix
RealComplexDenseCooMatOps.sub
(Matrix src1, CooCMatrix src2) Subtracts a real sparse matrix from a real dense matrix.static CMatrix
RealComplexDenseCooMatOps.sub
(CooCMatrix src2, Matrix src1) Subtracts a real sparse matrix from a real dense matrix. -
Uses of CooCMatrix in org.flag4j.linalg.ops.sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.sparse.coo.real_complex that return CooCMatrixModifier and TypeMethodDescriptionstatic CooCMatrix
RealComplexSparseMatOps.add
(CooCMatrix src1, CooMatrix src2) Adds a real sparse matrix to a complex sparse matrix.static CooCMatrix
RealComplexCooConcats.augment
(CooCMatrix a, CooMatrix b) Augments two matrices.static CooCMatrix
RealComplexCooConcats.augment
(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCMatrix
RealComplexSparseMatOps.elemMult
(CooCMatrix src1, CooMatrix src2) Multiplies two sparse matrices element-wise.static CooCMatrix
RealComplexSparseMatOps.sub
(CooCMatrix src1, CooMatrix src2) Subtracts a real sparse matrix from a complex sparse matrix.static CooCMatrix
RealComplexSparseMatOps.sub
(CooMatrix src1, CooCMatrix src2) Subtracts a complex sparse matrix from a real sparse matrix.Methods in org.flag4j.linalg.ops.sparse.coo.real_complex with parameters of type CooCMatrixModifier and TypeMethodDescriptionstatic CMatrix
RealComplexSparseMatOps.add
(CooCMatrix src, double a) Adds a double all data (including zero values) of a complex sparse matrix.static CooCMatrix
RealComplexSparseMatOps.add
(CooCMatrix src1, CooMatrix src2) Adds a real sparse matrix to a complex sparse matrix.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, CooMatrix b) Augments two matrices.static CooCMatrix
RealComplexCooConcats.augment
(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCMatrix
RealComplexSparseMatOps.elemMult
(CooCMatrix src1, CooMatrix src2) Multiplies two sparse matrices element-wise.static boolean
RealComplexSparseEquals.matrixEquals
(CooMatrix a, CooCMatrix b) Checks if a real sparse matrix and complex sparse matrix are equal.static CMatrix
RealComplexSparseMatOps.sub
(CooCMatrix src, double a) Adds a double all data (including zero values) of a complex sparse matrix.static CooCMatrix
RealComplexSparseMatOps.sub
(CooCMatrix src1, CooMatrix src2) Subtracts a real sparse matrix from a complex sparse matrix.static CooCMatrix
RealComplexSparseMatOps.sub
(CooMatrix src1, CooCMatrix src2) Subtracts a complex sparse matrix from a real sparse matrix. -
Uses of CooCMatrix in org.flag4j.rng
Methods in org.flag4j.rng that return CooCMatrixModifier and TypeMethodDescriptionRandomSparseTensor.randomSparseCMatrix
(int rows, int cols, double min, double max, double sparsity) Generates a random sparse matrix with the specified sparsity.RandomSparseTensor.randomSparseCMatrix
(int rows, int cols, double min, double max, int numNonZeroEntries) Generates a random sparse matrix with the specified number of non-zero data.RandomSparseTensor.randomSparseCMatrix
(Shape shape, double min, double max, double sparsity) Generates a random sparse matrix with the specified sparsity.RandomSparseTensor.randomSparseCMatrix
(Shape shape, double min, double max, int numNonZeroEntries) Generates a random sparse matrix with the specified number of non-zero data.