Uses of Class
org.flag4j.arrays.sparse.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
Modifier 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
Modifier 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.Modifier 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.