Uses of Record Class
org.flag4j.arrays.SparseVectorData
Packages that use SparseVectorData
Package
Description
-
Uses of SparseVectorData in org.flag4j.linalg.ops.sparse
Methods in org.flag4j.linalg.ops.sparse that return SparseVectorDataModifier and TypeMethodDescriptionstatic SparseVectorData
<Double> SparseUtils.coalesce
(BinaryOperator<Double> aggregator, Shape shape, double[] data, int[] indices) Coalesces this sparse COO vector.static <T> SparseVectorData
<T> SparseUtils.coalesce
(BinaryOperator<T> aggregator, Shape shape, T[] data, int[] indices) Coalesces this sparse COO vector.static SparseVectorData
<Double> Drops any explicit zeros in this sparse COO vector.static <T extends Semiring<T>>
SparseVectorData<T> Drops any explicit zeros in this sparse COO vector. -
Uses of SparseVectorData in org.flag4j.linalg.ops.sparse.coo
Methods in org.flag4j.linalg.ops.sparse.coo that return SparseVectorDataModifier and TypeMethodDescriptionstatic <T> SparseVectorData
<T> CooGetSet.getCol
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices, int colIdx, int start, int end) Gets a specified column of a COO matrix betweenstart
(inclusive) andend
(exclusive).static <T> SparseVectorData
<T> Gets the elements of a COO matrix along the specified diagonal.static <T> SparseVectorData
<T> CooGetSet.getRow
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices, int rowIdx, int start, int end) Gets a specified row of a COO matrix betweenstart
(inclusive) andend
(exclusive). -
Uses of SparseVectorData in org.flag4j.linalg.ops.sparse.coo.ring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops that return SparseVectorDataModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
SparseVectorData<T> CooRingVectorOps.sub
(Shape shape1, T[] src1, int[] src1Indices, Shape shape2, T[] src2, int[] src2Indices) Computes the element-wise vector subtraction between two real sparse vectors. -
Uses of SparseVectorData in org.flag4j.linalg.ops.sparse.coo.semiring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.semiring_ops that return SparseVectorDataModifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
SparseVectorData<T> CooSemiringVectorOps.add
(Shape shape1, T[] src1, int[] src1Indices, Shape shape2, T[] src2, int[] src2Indices) Computes the element-wise vector addition between two real sparse vectors.static <T extends Semiring<T>>
SparseVectorData<T> CooSemiringVectorOps.elemMult
(Shape shape1, T[] src1, int[] src1Indices, Shape shape2, T[] src2, int[] src2Indices) Computes the element-wise vector multiplication between two real sparse vectors.