Uses of Class
org.flag4j.arrays.sparse.CooSemiringTensor
Packages that use CooSemiringTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooSemiringTensor in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooSemiringTensorModifier and TypeMethodDescriptionprotected CooSemiringTensor
<T> SemiringMatrix.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.protected CooSemiringTensor
<T> SemiringTensor.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor. -
Uses of CooSemiringTensor in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooSemiringTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
CooSemiringTensor<T extends Semiring<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.Methods in org.flag4j.arrays.sparse that return CooSemiringTensorModifier and TypeMethodDescriptionCooSemiringTensor.makeLikeTensor
(Shape shape, List<T> data, List<int[]> indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.CooSemiringTensor.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooSemiringTensor.makeLikeTensor
(Shape shape, T[] data, int[][] indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.CooSemiringMatrix.toTensor()
Converts this matrix to an equivalent rank 2 tensor.Converts this matrix to an equivalent tensor with the specified shape.CooSemiringVector.toTensor()
Converts this matrix to an equivalent rank 1 tensor.Converts this vector to an equivalent tensor with the specified shape.CsrSemiringMatrix.toTensor()
Converts this CSR matrix to an equivalent sparse COO tensor.Converts this CSR matrix to an equivalent COO tensor with the specified shape.static <T extends Semiring<T>>
CooSemiringTensor<T> CooSemiringTensor.unsafeMake
(Shape shape, T[] data, int[][] indices) Factory to construct a COO tensor which bypasses any validation checks on the data and indices.