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.
Implementations of operations between real and complex sparse COO (coordinate) array objects.
Pseudo-random generation of real/complex numbers, and arrays, vectors, matrices, and tensors.
-
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 CooCTensorCTensor.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 TypeClassDescriptionclassSparse 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 theshapeanddata.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 withintolof 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.static CooCTensorCooCTensor.unsafeMake(Shape shape, Complex128[] data, int[][] indices) Factory to construct a COO tensor which bypasses any validation checks on the data and indices.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 CooCTensorComputes the element-wise division between a real dense tensor and a complex sparse tensor.static CooCTensorComputes the element-wise multiplication between a complex dense tensor and a real sparse matrix.static CooCTensorRealComplexDenseCooOps.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 CTensorRealComplexDenseCooOps.add(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CooCTensorRealComplexDenseCooOps.elemMult(Tensor src1, CooCTensor src2) Computes the element-wise multiplication between a complex dense tensor and a real sparse matrix.static CTensorRealComplexDenseCooOps.sub(Tensor src1, CooCTensor src2) Subtracts a sparse complex tensor from a real dense tensor.static CTensorRealComplexDenseCooOps.sub(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CTensorRealComplexDenseCooOps.sub(CooCTensor src1, Tensor src2) Subtracts a real dense tensor from a complex sparse tensor.static booleanRealComplexDenseSparseEquals.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 CooCTensorRealComplexCooTensorOps.add(CooCTensor src1, CooTensor src2) Sums two sparse COO tensors and stores result in a new COO tensor.static CooCTensorRealComplexCooTensorOps.elemMult(CooCTensor src1, CooTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensorRealComplexCooTensorOps.elemMult(CooTensor src1, CooCTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensorRealComplexCooTensorOps.sub(CooCTensor src1, CooTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static CooCTensorRealComplexCooTensorOps.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 CooCTensorRealComplexCooTensorOps.add(CooCTensor src1, CooTensor src2) Sums two sparse COO tensors and stores result in a new COO tensor.static CooCTensorRealComplexCooTensorOps.elemMult(CooCTensor src1, CooTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensorRealComplexCooTensorOps.elemMult(CooTensor src1, CooCTensor src2) Computes the element-wise multiplication between two sparse COO tensors.static CooCTensorRealComplexCooTensorOps.sub(CooCTensor src1, CooTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static CooCTensorRealComplexCooTensorOps.sub(CooTensor src1, CooCTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static booleanRealComplexSparseEquals.tensorEquals(CooTensor a, CooCTensor b) Checks if a real sparse tensor and complex sparse tensor are equal. -
Uses of CooCTensor in org.flag4j.rng
Methods in org.flag4j.rng that return CooCTensorModifier and TypeMethodDescriptionRandomSparseTensor.randomCooCTensor(Shape shape, double min, double max, double sparsity) Constructs a complex COO tensor with the specified shape and sparsity filled with pseudo-random values uniformly distributed in an annulus centered on the origin of the complex plane.RandomSparseTensor.randomCooCTensor(Shape shape, double min, double max, int nnz) Constructs a complex COO tensor with the specified shape and number of non-zero entries filled with pseudo-random values uniformly distributed in an annulus centered on the origin of the complex plane.