Uses of Class
org.flag4j.arrays.sparse.CooCTensor
Packages that use CooCTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooCTensor in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooCTensorModifier and TypeMethodDescriptionCTensor.elemMult
(CooCTensor b) Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise multiplication of two tensors of the same shape.Tensor.elemMult
(CooCTensor b) Computes the element-wise multiplication between two tensors.protected CooCTensor
CTensor.makeLikeCooTensor
(Shape shape, Complex128[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.CTensor.toCoo()
Converts this tensor to an equivalent sparse COO tensor.CTensor.toCoo
(double estimatedSparsity) Converts this tensor to an equivalent sparse COO tensor.Methods in org.flag4j.arrays.dense with parameters of type CooCTensorModifier and TypeMethodDescriptionCTensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.Tensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.CTensor.elemMult
(CooCTensor b) Computes the element-wise multiplication of two tensors of the same shape.Tensor.elemMult
(CooCTensor b) Computes the element-wise multiplication between two tensors.CTensor.sub
(CooCTensor b) Computes the element-wise difference between two tensors of the same shape.Tensor.sub
(CooCTensor b) Computes the element-wise difference between two tensors of the same shape and stores the result in this tensor. -
Uses of CooCTensor in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooCTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
Sparse complex tensor stored in coordinate list (COO) format.Methods in org.flag4j.arrays.sparse that return CooCTensorModifier and TypeMethodDescriptionCooTensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.CooCTensor.makeLikeTensor
(Shape shape, List<Complex128> entries, List<int[]> indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.CooCTensor.makeLikeTensor
(Shape shape, Complex128[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooCTensor.makeLikeTensor
(Shape shape, Complex128[] entries, int[][] indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.CooCTensor.round
(int precision) Rounds all data within this tensor to the specified precision.CooCTensor.roundToZero
(double tolerance) Sets all elements of this tensor to zero if they are withintol
of zero.CooCTensor.set
(double value, int... target) Sets the element of this tensor at the specified target index.CooTensor.toComplex()
Converts this tensor to an equivalent complex tensor.CooCMatrix.toTensor()
Converts this matrix to an equivalent tensor.Converts this matrix to an equivalent tensor with the specified shape.CooCVector.toTensor()
Converts this matrix to an equivalent rank 1 tensor.Converts this vector to an equivalent tensor with the specified shape.CsrCMatrix.toTensor()
Converts this CSR matrix to an equivalent sparse COO tensor.Converts this CSR matrix to an equivalent COO tensor with the specified shape.Methods in org.flag4j.arrays.sparse with parameters of type CooCTensorModifier and TypeMethodDescriptionCooTensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.Constructors in org.flag4j.arrays.sparse with parameters of type CooCTensor -
Uses of CooCTensor in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex that return CooCTensorModifier and TypeMethodDescriptionstatic CooCTensor
Computes the element-wise division between a real dense tensor and a complex sparse tensor.static CooCTensor
Computes the element-wise multiplication between a complex dense tensor and a real sparse matrix.static CooCTensor
RealComplexDenseCooOps.elemMult
(Tensor src1, CooCTensor src2) Computes the element-wise multiplication between a complex dense tensor and a real sparse matrix.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CooCTensorModifier and TypeMethodDescriptionstatic CTensor
RealComplexDenseCooOps.add
(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CooCTensor
RealComplexDenseCooOps.elemMult
(Tensor src1, CooCTensor src2) Computes the element-wise multiplication between a complex dense tensor and a real sparse matrix.static CTensor
RealComplexDenseCooOps.sub
(Tensor src1, CooCTensor src2) Subtracts a sparse complex tensor from a real dense tensor.static CTensor
RealComplexDenseCooOps.sub
(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CTensor
RealComplexDenseCooOps.sub
(CooCTensor src1, Tensor src2) Subtracts a real dense tensor from a complex sparse tensor.static boolean
RealComplexDenseSparseEquals.tensorEquals
(Tensor A, CooCTensor B) Checks if a real dense tensor is equal to a complex sparse tensor. -
Uses of CooCTensor in org.flag4j.linalg.ops.sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.sparse.coo.real_complex that return CooCTensorModifier and TypeMethodDescriptionstatic CooCTensor
RealComplexCooTensorOps.add
(CooCTensor src1, CooTensor src2) Sums two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
RealComplexCooTensorOps.elemMult
(CooCTensor src1, CooTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensor
RealComplexCooTensorOps.elemMult
(CooTensor src1, CooCTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensor
RealComplexCooTensorOps.sub
(CooCTensor src1, CooTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
RealComplexCooTensorOps.sub
(CooTensor src1, CooCTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.Methods in org.flag4j.linalg.ops.sparse.coo.real_complex with parameters of type CooCTensorModifier and TypeMethodDescriptionstatic CooCTensor
RealComplexCooTensorOps.add
(CooCTensor src1, CooTensor src2) Sums two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
RealComplexCooTensorOps.elemMult
(CooCTensor src1, CooTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensor
RealComplexCooTensorOps.elemMult
(CooTensor src1, CooCTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensor
RealComplexCooTensorOps.sub
(CooCTensor src1, CooTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
RealComplexCooTensorOps.sub
(CooTensor src1, CooCTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static boolean
RealComplexSparseEquals.tensorEquals
(CooTensor a, CooCTensor b) Checks if a real sparse tensor and complex sparse tensor are equal.