Uses of Class
org.flag4j.arrays.sparse.CsrSemiringMatrix
Packages that use CsrSemiringMatrix
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CsrSemiringMatrix in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with parameters of type CsrSemiringMatrixModifier and TypeMethodDescription<U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(CsrSemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(CsrSemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(CsrSemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(CsrSemiringMatrix<U> matrix) MatrixVisitor.visit
(CsrSemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(CsrSemiringMatrix<U> matrix) -
Uses of CsrSemiringMatrix in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CsrSemiringMatrixModifier and TypeMethodDescriptionSemiringMatrix.makeLikeCsrMatrix
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix which is of a similar type as this dense matrix.SemiringMatrix.toCsr()
Converts this matrix to an equivalent sparse CSR matrix.SemiringMatrix.toCsr
(double estimatedSparsity) Converts this matrix to an equivalent sparse CSR matrix. -
Uses of CsrSemiringMatrix in org.flag4j.arrays.sparse
Subclasses with type arguments of type CsrSemiringMatrix in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
CsrSemiringMatrix<T extends Semiring<T>>
Instances of this class represent a sparse matrix using the compressed sparse row (CSR) format where all data elements belonging to a specifiedSemiring
type.Methods in org.flag4j.arrays.sparse that return CsrSemiringMatrixModifier and TypeMethodDescriptionCsrSemiringMatrix.coalesce()
Coalesces this sparse CSR matrix.CsrSemiringMatrix.coalesce
(BinaryOperator<T> aggregator) Coalesces this sparse COO matrix.CsrSemiringMatrix.dropZeros()
Drops any explicit zeros in this sparse COO matrix.CsrSemiringMatrix.makeLikeTensor
(Shape shape, List<T> entries, List<Integer> rowPointers, List<Integer> colIndices) Constructs a CSR matrix with the specified shape, non-zero data, and non-zero indices.CsrSemiringMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CsrSemiringMatrix.makeLikeTensor
(Shape shape, T[] 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.CooSemiringMatrix.toCsr()
Converts this sparse COO matrix to an equivalent compressed sparse row (CSR) matrix.Methods in org.flag4j.arrays.sparse with parameters of type CsrSemiringMatrixModifier and TypeMethodDescriptionCsrSemiringMatrix.tensorDot
(CsrSemiringMatrix<T> src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.