Uses of Class
org.flag4j.arrays.sparse.CooFieldTensor
Packages that use CooFieldTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooFieldTensor in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooFieldTensorModifier and TypeMethodDescriptionprotected CooFieldTensor
<T> FieldTensor.makeLikeCooTensor
(Shape shape, T[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor. -
Uses of CooFieldTensor in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooFieldTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
CooFieldTensor<T extends Field<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedField
type.Methods in org.flag4j.arrays.sparse that return CooFieldTensorModifier and TypeMethodDescriptionCooFieldTensor.makeLikeTensor
(Shape shape, List<T> entries, List<int[]> indices) Constructs a sparse tensor of the same type as this tensor with the given the shape, non-zero data, and non-zero indices.CooFieldTensor.makeLikeTensor
(Shape shape, T[] entries) Constructs a sparse tensor of the same type as this tensor with the same indices as this sparse tensor and with the provided the shape and data.CooFieldTensor.makeLikeTensor
(Shape shape, T[] entries, int[][] indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.Sets the element of this tensor at the specified indices.CooFieldMatrix.toTensor()
Converts this matrix to an equivalent tensor.Converts this matrix to an equivalent tensor with the specified shape.CooFieldVector.toTensor()
Converts this matrix to an equivalent rank 1 tensor.Converts this vector to an equivalent tensor with the specified shape.CsrFieldMatrix.toTensor()
Converts this CSR matrix to an equivalent sparse COO tensor.Converts this CSR matrix to an equivalent COO tensor with the specified shape.