Uses of Record Class
org.flag4j.arrays.SparseTensorData
Packages that use SparseTensorData
Package
Description
Implementations of operations on
Semiring
dense array objects.Implementations of operations on
Ring
sparse COO (coordinate) array objects.Implementations of operations on
Semiring
sparse COO (coordinate) array objects.-
Uses of SparseTensorData in org.flag4j.linalg.ops.dense.semiring_ops
Methods in org.flag4j.linalg.ops.dense.semiring_ops that return SparseTensorDataModifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
SparseTensorData<T> DenseSemiringConversions.toCooTensor
(Shape shape, T[] entries) Converts a dense tensor to an equivalent sparse COO tensor.static <T extends Semiring<T>>
SparseTensorData<T> DenseSemiringConversions.toCooTensor
(Shape shape, T[] entries, double estimatedSparsity) Converts a dense tensor to an equivalent sparse COO tensor. -
Uses of SparseTensorData in org.flag4j.linalg.ops.sparse
Methods in org.flag4j.linalg.ops.sparse that return SparseTensorDataModifier and TypeMethodDescriptionstatic SparseTensorData
<Double> SparseUtils.coalesce
(BinaryOperator<Double> aggregator, Shape shape, double[] data, int[][] indices) Coalesces this sparse COO tensor.static <T> SparseTensorData
<T> SparseUtils.coalesce
(BinaryOperator<T> aggregator, Shape shape, T[] data, int[][] indices) Coalesces this sparse COO tensor.static SparseTensorData
<Double> Drops any explicit zeros in this sparse COO tensor.static <T extends Semiring<T>>
SparseTensorData<T> Drops any explicit zeros in this sparse COO tensor. -
Uses of SparseTensorData in org.flag4j.linalg.ops.sparse.coo.ring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops that return SparseTensorDataModifier and TypeMethodDescriptionstatic <V extends Ring<V>>
SparseTensorData<V> CooRingTensorOps.sub
(Shape shape1, V[] src1Entries, int[][] src1Indices, Shape shape2, V[] src2Entries, int[][] src2Indices) Sums two complex sparse COO tensors and stores result in a new COO tensor. -
Uses of SparseTensorData in org.flag4j.linalg.ops.sparse.coo.semiring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.semiring_ops that return SparseTensorDataModifier and TypeMethodDescriptionstatic <V extends Semiring<V>>
SparseTensorData<V> CooSemiringTensorOps.add
(Shape shape1, V[] src1Entries, int[][] src1Indices, Shape shape2, V[] src2Entries, int[][] src2Indices) Sums two complex sparse COO tensors and stores result in a new COO tensor.static <V extends Semiring<V>>
SparseTensorData<V> CooSemiringTensorOps.elemMult
(Shape shape1, V[] src1Entries, int[][] src1Indices, Shape shape2, V[] src2Entries, int[][] src2Indices) Computes the element-wise multiplication between two complex sparse COO tensors.static <T extends Semiring<T>>
SparseTensorData<T> Computes the generalized trace of a tensor along the specified axes.