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