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.
General purpose linear algebra operations including condition number evaluations, eigenvalue/eigenvector computations, matrix
inversion, and subspace analysis.
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 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 TMatrixVisitor.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 CooCMatrixCMatrix.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 CooCMatrixCMatrix.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 TypeClassDescriptionclassA complex sparse matrix stored in coordinate list (COO) format.classA 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 theshapeanddata.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 withintolof 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.static CooCMatrixCooCMatrix.unsafeMake(Shape shape, Complex128[] data, int[] rowIndices, int[] colIndices) Factory to construct a COO matrix which bypasses any validation checks on the data and indices.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 CooCMatrixDirectSum.directSum(CooCMatrix A, CMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, Matrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, CooMatrix B) Computes the direct sum of two matrices.static CooCMatrixComputes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, Matrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CooMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.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 CMatrixDirectSum.directSum(CMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CMatrixDirectSum.directSum(Matrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, CMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, Matrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooCMatrix A, CooMatrix B) Computes the direct sum of two matrices.static CooCMatrixDirectSum.directSum(CooMatrix A, CooCMatrix B) Computes the direct sum of two matrices.static CMatrixDirectSum.invDirectSum(CMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CMatrixDirectSum.invDirectSum(Matrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, Matrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooCMatrix A, CooMatrix B) Computes direct sum from bottom left to top right of two matrices.static CooCMatrixDirectSum.invDirectSum(CooMatrix A, CooCMatrix B) Computes direct sum from bottom left to top right of two matrices.static doubleMatrixNorms.maxNorm(CooCMatrix src) Computes the max norm of a matrix.static doubleMatrixNorms.norm(CooCMatrix src) Computes the Frobenius (\( L_{2, 2} \)) norm of this complex COO matrix.static doubleMatrixNorms.norm(CooCMatrix src, double p, double q) Computes the \( L_{p,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 CooCMatrixComputes the element-wise division between a real sparse matrix and a complex dense matrix.static CooCMatrixComputes the element-wise multiplication between a complex dense matrix and a real sparse matrix.static CooCMatrixRealComplexDenseCooMatOps.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 CMatrixRealComplexDenseCooMatOps.add(Matrix src1, CooCMatrix src2) Adds a real dense matrix to a complex sparse matrix.static CooCMatrixRealComplexDenseCooMatOps.elemMult(Matrix src1, CooCMatrix src2) Computes the element-wise multiplication between a complex dense matrix and a real sparse matrix.static booleanRealComplexDenseSparseEquals.matrixEquals(Matrix A, CooCMatrix B) Checks if a real dense matrix is equal to a sparse complex matrix.static CMatrixRealComplexDenseCooMatOps.sub(Matrix src1, CooCMatrix src2) Subtracts a real sparse matrix from a real dense matrix.static CMatrixRealComplexDenseCooMatOps.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 CooCMatrixRealComplexSparseMatOps.add(CooCMatrix src1, CooMatrix src2) Adds a real sparse matrix to a complex sparse matrix.static CooCMatrixRealComplexCooConcats.augment(CooCMatrix a, CooMatrix b) Augments two matrices.static CooCMatrixRealComplexCooConcats.augment(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCMatrixRealComplexSparseMatOps.elemMult(CooCMatrix src1, CooMatrix src2) Multiplies two sparse matrices element-wise.static CooCMatrixRealComplexSparseMatOps.sub(CooCMatrix src1, CooMatrix src2) Subtracts a real sparse matrix from a complex sparse matrix.static CooCMatrixRealComplexSparseMatOps.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 CMatrixRealComplexSparseMatOps.add(CooCMatrix src, double a) Adds a double all data (including zero values) of a complex sparse matrix.static CooCMatrixRealComplexSparseMatOps.add(CooCMatrix src1, CooMatrix src2) Adds a real sparse matrix to a complex sparse matrix.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, CooMatrix b) Augments two matrices.static CooCMatrixRealComplexCooConcats.augment(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.static CooCMatrixRealComplexSparseMatOps.elemMult(CooCMatrix src1, CooMatrix src2) Multiplies two sparse matrices element-wise.static booleanRealComplexSparseEquals.matrixEquals(CooMatrix a, CooCMatrix b) Checks if a real sparse matrix and complex sparse matrix are equal.static CMatrixRealComplexSparseMatOps.sub(CooCMatrix src, double a) Adds a double all data (including zero values) of a complex sparse matrix.static CooCMatrixRealComplexSparseMatOps.sub(CooCMatrix src1, CooMatrix src2) Subtracts a real sparse matrix from a complex sparse matrix.static CooCMatrixRealComplexSparseMatOps.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.randomCooCMatrix(int rows, int cols, double min, double max, double sparsity) Generates a random sparse matrix with the specified sparsity.RandomSparseTensor.randomCooCMatrix(int rows, int cols, double min, double max, int nnz) Generates a random sparse matrix with the specified number of non-zero data.RandomSparseTensor.randomCooCMatrix(Shape shape, double min, double max, double sparsity) Generates a random sparse matrix with the specified sparsity.RandomSparseTensor.randomCooCMatrix(Shape shape, double min, double max, int nnz) Generates a random sparse matrix with the specified number of non-zero data.RandomSparseTensor.randomHermitianCooMatrix(int size, int min, int max, double sparsity) Generates a Hermitiancomplex COO matrixfilled with pseudorandom values uniformly distributed in an annulus centered on the complex plane.