Uses of Class
org.flag4j.arrays.sparse.CsrCMatrix
Packages that use CsrCMatrix
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CsrCMatrix in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with parameters of type CsrCMatrixModifier and TypeMethodDescriptionMatrixMixin
<?, ?, ?, ?> AddVisitor.visit
(CsrCMatrix matrix) MatrixMixin
<?, ?, ?, ?> DivVisitor.visit
(CsrCMatrix matrix) MatrixMixin
<?, ?, ?, ?> ElemMultVisitor.visit
(CsrCMatrix matrix) MatrixMixin
<?, ?, ?, ?> MatMultVisitor.visit
(CsrCMatrix matrix) abstract T
MatrixVisitor.visit
(CsrCMatrix matrix) MatrixMixin
<?, ?, ?, ?> SubVisitor.visit
(CsrCMatrix matrix) -
Uses of CsrCMatrix in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CsrCMatrixModifier and TypeMethodDescriptionCMatrix.makeLikeCsrMatrix
(Shape shape, Complex128[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix which is of a similar type as this dense matrix.CMatrix.toCsr()
Converts this matrix to an equivalent sparse CSR matrix.CMatrix.toCsr
(double estimatedSparsity) Converts this matrix to an equivalent sparse CSR matrix.Methods in org.flag4j.arrays.dense with parameters of type CsrCMatrixModifier and TypeMethodDescriptionMatrix.add
(CsrCMatrix b) Sums this matrix with a real sparse CSR matrix.CMatrix.mult
(CsrCMatrix b) Computes the matrix multiplication between two matrices.Matrix.mult
(CsrCMatrix b) Computes the matrix multiplication between this matrix and a complex sparse CSR matrix.Matrix.sub
(CsrCMatrix b) Computes the difference of this matrix with a real sparse CSR matrix. -
Uses of CsrCMatrix in org.flag4j.arrays.sparse
Subclasses with type arguments of type CsrCMatrix in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
A complex sparse matrix stored in compressed sparse row (CSR) format.Methods in org.flag4j.arrays.sparse that return CsrCMatrixModifier and TypeMethodDescriptionCsrMatrix.add
(Complex128 b) Adds a complex-valued scalar to all non-zero data of this sparse matrix.CooCMatrix.makeLikeCsrMatrix
(Shape shape, Complex128[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix of a similar type to this sparse COO matrix.CsrCMatrix.makeLikeTensor
(Shape shape, List<Complex128> entries, List<Integer> rowPointers, List<Integer> colIndices) Constructs a CSR matrix with the specified shape, non-zero data, and non-zero indices.CsrCMatrix.makeLikeTensor
(Shape shape, Complex128[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CsrCMatrix.makeLikeTensor
(Shape shape, Complex128[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR tensor of the same type as this tensor with the specified non-zero data and indices.CsrCMatrix.mult2Csr
(CsrCMatrix b) Computes the matrix multiplication between two matrices.Computes the matrix multiplication between two matrices.CsrMatrix.mult2Csr
(CsrCMatrix b) Computes the matrix multiplication between two sparse CSR matrices and stores the result in a CSR matrix.CsrCMatrix.round
(int precision) Rounds all data within this matrix to the specified precision.CsrCMatrix.roundToZero
(double tolerance) Sets all elements of this matrix to zero if they are withintol
of zero.CsrCMatrix.set
(double value, int rowIdx, int colIdx) Sets the specified index of this matrix to the provided value.CsrMatrix.sub
(Complex128 b) Subtracts a complex-valued scalar from all non-zero data of this sparse matrix.CooCMatrix.toCsr()
Converts this sparse COO matrix to an equivalent sparse CSR matrix.Methods in org.flag4j.arrays.sparse with parameters of type CsrCMatrixModifier and TypeMethodDescriptionCsrMatrix.mult
(CsrCMatrix b) Computes the matrix multiplication between two matrices.CsrCMatrix.mult2Csr
(CsrCMatrix b) Computes the matrix multiplication between two matrices.CsrMatrix.mult2Csr
(CsrCMatrix b) Computes the matrix multiplication between two sparse CSR matrices and stores the result in a CSR matrix.CsrCMatrix.tensorDot
(CsrCMatrix src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes. -
Uses of CsrCMatrix in org.flag4j.linalg
Methods in org.flag4j.linalg with parameters of type CsrCMatrixModifier and TypeMethodDescriptionstatic double
MatrixNorms.maxNorm
(CsrCMatrix src) Computes the max norm of a matrix.static double
MatrixNorms.norm
(CsrCMatrix src) Computes the Frobenius of this matrix.static double
MatrixNorms.norm
(CsrCMatrix src, double p, double q) Computes the Lp, q norm of a complex CSR matrix. -
Uses of CsrCMatrix in org.flag4j.linalg.ops.dense_sparse.csr.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.csr.real_complex with parameters of type CsrCMatrixModifier and TypeMethodDescriptionstatic CMatrix
RealComplexCsrDenseOps.add
(CsrCMatrix a, Matrix b) Computes the element-wise sum of two matrices.static CMatrix
RealComplexCsrDenseOps.applyBinOpp
(Matrix src1, CsrCMatrix src2, BiFunction<Double, Complex128, Complex128> opp) Applies the specified binary operator element-wise to the two matrices.static CMatrix
RealComplexCsrDenseOps.applyBinOpp
(CsrCMatrix src1, Matrix src2, BiFunction<Complex128, Double, Complex128> opp, UnaryOperator<Double> uOpp) Applies the specified binary operator element-wise to the two matrices.static CMatrix
RealComplexCsrDenseOps.sub
(Matrix a, CsrCMatrix b) Computes the element-wise difference of two matrices.static CMatrix
RealComplexCsrDenseOps.sub
(CsrCMatrix a, Matrix b) Computes the element-wise difference of two matrices. -
Uses of CsrCMatrix in org.flag4j.linalg.ops.sparse.csr.real_complex
Methods in org.flag4j.linalg.ops.sparse.csr.real_complex that return CsrCMatrixModifier and TypeMethodDescriptionstatic CsrCMatrix
RealComplexCsrOps.add
(CsrCMatrix a, CsrMatrix b) Computes the element-wise sum of two matrices.static CsrCMatrix
RealComplexCsrOps.applyBinOpp
(CsrCMatrix src1, CsrMatrix src2, BiFunction<Complex128, Double, Complex128> opp, UnaryOperator<Double> uOpp) Applies an element-wise binary operation to twoCSR Matrices
.static CsrCMatrix
RealComplexCsrOps.applyBinOpp
(CsrMatrix src1, CsrCMatrix src2, BiFunction<Double, Complex128, Complex128> opp, UnaryOperator<Complex128> uOpp) Applies an element-wise binary operation to twoCSR Matrices
.static CsrCMatrix
RealComplexCsrOps.elemMult
(CsrCMatrix src1, CsrMatrix src2) Computes the element-wise multiplication between a complex sparse matrix and a real sparse matrix.static CsrCMatrix
RealComplexCsrMatMult.standardAsSparse
(CsrCMatrix src1, CsrMatrix src2) Computes the matrix multiplication between two sparse CSR matrices and returns the result as a sparse matrix.static CsrCMatrix
RealComplexCsrMatMult.standardAsSparse
(CsrMatrix src1, CsrCMatrix src2) Computes the matrix multiplication between two sparse CSR matrices and returns the result as a sparse matrix.static CsrCMatrix
RealComplexCsrOps.sub
(CsrCMatrix a, CsrMatrix b) Computes the element-wise difference of two matrices.static CsrCMatrix
RealComplexCsrOps.sub
(CsrMatrix a, CsrCMatrix b) Computes the element-wise difference of two matrices.Methods in org.flag4j.linalg.ops.sparse.csr.real_complex with parameters of type CsrCMatrixModifier and TypeMethodDescriptionstatic CsrCMatrix
RealComplexCsrOps.add
(CsrCMatrix a, CsrMatrix b) Computes the element-wise sum of two matrices.static CMatrix
RealComplexCsrOps.addToEachCol
(CsrCMatrix src1, Vector src2) Adds a vector to each column of a matrix.static CMatrix
RealComplexCsrOps.addToEachCol
(CsrCMatrix src1, CooVector src2) Adds a vector to each column of a matrix.static CMatrix
RealComplexCsrOps.addToEachRow
(CsrCMatrix src1, Vector src2) Adds a vector to each row of a matrix.static CMatrix
RealComplexCsrOps.addToEachRow
(CsrCMatrix src1, CooVector src2) Adds a vector to each row of a matrix.static CsrCMatrix
RealComplexCsrOps.applyBinOpp
(CsrCMatrix src1, CsrMatrix src2, BiFunction<Complex128, Double, Complex128> opp, UnaryOperator<Double> uOpp) Applies an element-wise binary operation to twoCSR Matrices
.static CsrCMatrix
RealComplexCsrOps.applyBinOpp
(CsrMatrix src1, CsrCMatrix src2, BiFunction<Double, Complex128, Complex128> opp, UnaryOperator<Complex128> uOpp) Applies an element-wise binary operation to twoCSR Matrices
.static CsrCMatrix
RealComplexCsrOps.elemMult
(CsrCMatrix src1, CsrMatrix src2) Computes the element-wise multiplication between a complex sparse matrix and a real sparse matrix.static CMatrix
RealComplexCsrMatMult.standard
(CsrCMatrix src1, CsrMatrix src2) Computes the matrix multiplication between two sparse CSR matrices.static CMatrix
RealComplexCsrMatMult.standard
(CsrMatrix src1, CsrCMatrix src2) Computes the matrix multiplication between two sparse CSR matrices.static CsrCMatrix
RealComplexCsrMatMult.standardAsSparse
(CsrCMatrix src1, CsrMatrix src2) Computes the matrix multiplication between two sparse CSR matrices and returns the result as a sparse matrix.static CsrCMatrix
RealComplexCsrMatMult.standardAsSparse
(CsrMatrix src1, CsrCMatrix src2) Computes the matrix multiplication between two sparse CSR matrices and returns the result as a sparse 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.static CsrCMatrix
RealComplexCsrOps.sub
(CsrCMatrix a, CsrMatrix b) Computes the element-wise difference of two matrices.static CsrCMatrix
RealComplexCsrOps.sub
(CsrMatrix a, CsrCMatrix b) Computes the element-wise difference of two matrices.