Uses of Class
org.flag4j.arrays.sparse.CooRingTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooRingTensor in org.flag4j.arrays.dense
Modifier and TypeMethodDescriptionprotected CooRingTensor
<T> RingMatrix.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.protected CooRingTensor
<T> RingTensor.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor. -
Uses of CooRingTensor in org.flag4j.arrays.sparse
Modifier and TypeClassDescriptionclass
CooRingTensor<T extends Ring<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedRing
type.Modifier and TypeMethodDescriptionCooRingTensor.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.CooRingTensor.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooRingTensor.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.CooRingMatrix.toTensor()
Converts this matrix to an equivalent rank 2 tensor.Converts this matrix to an equivalent tensor with the specified shape.CooRingVector.toTensor()
Converts this matrix to an equivalent rank 1 tensor.Converts this vector to an equivalent tensor with the specified shape.CsrRingMatrix.toTensor()
Converts this CSR matrix to an equivalent sparse COO tensor.Converts this CSR matrix to an equivalent COO tensor with the specified shape.