Uses of Record Class
org.flag4j.arrays.SparseMatrixData
Packages that use SparseMatrixData
Package
Description
-
Uses of SparseMatrixData in org.flag4j.linalg.ops.dense.semiring_ops
Methods in org.flag4j.linalg.ops.dense.semiring_ops that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
SparseMatrixData<T> Converts a dense matrix to an equivalent sparse COO matrix.static <T extends Semiring<T>>
SparseMatrixData<T> Converts a dense matrix to an equivalent sparse COO matrix. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse
Methods in org.flag4j.linalg.ops.sparse that return SparseMatrixDataModifier and TypeMethodDescriptionstatic SparseMatrixData
<Double> SparseUtils.coalesce
(BinaryOperator<Double> aggregator, Shape shape, double[] data, int[] rowIndices, int[] colIndices) Coalesces this sparse COO matrix.static <T> SparseMatrixData
<T> SparseUtils.coalesce
(BinaryOperator<T> aggregator, Shape shape, T[] data, int[] rowIndices, int[] colIndices) Coalesces this sparse COO matrix.static SparseMatrixData
<Double> Drops any explicit zeros in this sparse COO matrix.static <T extends Semiring<T>>
SparseMatrixData<T> Drops any explicit zeros in this sparse COO matrix.static <T extends Semiring<T>>
SparseMatrixData<T> SparseUtils.dropZerosCsr
(Shape shape, T[] data, int[] rowPointers, int[] colIndices) Drops all explicit zeros within a sparse CSR matrix. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse.coo
Methods in org.flag4j.linalg.ops.sparse.coo that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <T> SparseMatrixData
<T> CooGetSet.getSlice
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices, int rowStart, int rowEnd, int colStart, int colEnd) Extracts a specified slice from a sparse COO matrix.static <T> SparseMatrixData
<T> Gets the lower-triangular portion of a sparse COO matrix with a possible diagonal offset.static <T> SparseMatrixData
<T> Gets the upper-triangular portion of a sparse COO matrix with a possible diagonal offset.static <T> SparseMatrixData
<T> CooGetSet.setCol
(Shape srcShape, T[] srcEntries, int[] rowIndices, int[] colIndices, int colIdx, int size, T[] col, int[] indices) Sets a column of a sparse matrix to the values in a sparse tensor.static <T> SparseMatrixData
<T> CooGetSet.setRow
(Shape srcShape, T[] srcEntries, int[] rowIndices, int[] colIndices, int rowIdx, int size, T[] row, int[] indices) Sets a specified row of a real sparse COO matrix to the values in a sparse COO vector.static <T> SparseMatrixData
<T> CooGetSet.setSlice
(Shape shape1, T[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, T[] src2Entries, int[] src2RowIndices, int[] src2ColIndices, int row, int col) Copies a sparse matrix and sets a slice of the sparse COO matrix to the data of another sparse COO matrix. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse.coo.ring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <V extends Ring<V>>
SparseMatrixData<V> CooRingMatrixOps.sub
(Shape shape1, V[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, V[] src2Entries, int[] src2RowIndices, int[] src2ColIndices) Computes the element-wise difference of two sparse matrices. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse.coo.semiring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.semiring_ops that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <V extends Semiring<V>>
SparseMatrixData<V> CooSemiringMatrixOps.add
(Shape shape1, V[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, V[] src2Entries, int[] src2RowIndices, int[] src2ColIndices) Adds two sparse matrices.static <V extends Semiring<V>>
SparseMatrixData<V> CooSemiringMatrixOps.elemMult
(Shape shape1, V[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, V[] src2Entries, int[] src2RowIndices, int[] src2ColIndices) Multiplies two sparse matrices element-wise. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse.csr
Methods in org.flag4j.linalg.ops.sparse.csr that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <T> SparseMatrixData
<T> CsrOps.applyBinOpp
(Shape shape1, T[] src1Entries, int[] src1RowPointers, int[] src1ColIndices, Shape shape2, T[] src2Entries, int[] src2RowPointers, int[] src2ColIndices, BinaryOperator<T> opp, UnaryOperator<T> uOpp) Applies an element-wise binary operation to two csr matrices.static <T> SparseMatrixData
<T> CsrOps.getSlice
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices, int rowStart, int rowEnd, int colStart, int colEnd) Gets a specified slice of a CSR matrix. -
Uses of SparseMatrixData in org.flag4j.linalg.ops.sparse.csr.semiring_ops
Methods in org.flag4j.linalg.ops.sparse.csr.semiring_ops that return SparseMatrixDataModifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
SparseMatrixData<T> SemiringCsrMatMult.standardToSparse
(Shape shape1, T[] src1Entries, int[] src1RowPointers, int[] src1ColIndices, Shape shape2, T[] src2Entries, int[] src2RowPointers, int[] src2ColIndices) Computes the matrix multiplication between two sparse CSR matrices and returns the result as a sparse matrix.