Uses of Class
org.flag4j.arrays.sparse.CooTensor
Packages that use CooTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
Implementations of operations on real sparse COO (coordinate) array objects.
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 CooTensor in org.flag4j.arrays.backend.field_arrays
Methods in org.flag4j.arrays.backend.field_arrays that return CooTensor -
Uses of CooTensor in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooTensorModifier and TypeMethodDescriptionComputes the element-wise multiplication between two tensors.Tensor.toCoo()Converts this tensor to an equivalent sparse COO tensor.Tensor.toCoo(double estimatedSparsity) Converts this tensor to an equivalent sparse COO tensor.Methods in org.flag4j.arrays.dense with parameters of type CooTensorModifier and TypeMethodDescriptionComputes the element-wise sum between two tensors of the same shape.Computes the element-wise sum between two tensors of the same shape.Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise multiplication between two tensors.Computes the element-wise difference between two tensors of the same shape.Computes the element-wise difference between two tensors of the same shape. -
Uses of CooTensor in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclassA real sparse tensor stored in coordinate list (COO) format.Methods in org.flag4j.arrays.sparse that return CooTensorModifier and TypeMethodDescriptionCooRingTensor.abs()Computes the element-wise absolute value of this tensor.CooTensor.add(double b) Adds a scalar value to each non-zero value of this tensor.Adds a scalar field value to each non-zero entry of this tensor.Computes the element-wise sum between two tensors of the same shape.CooTensor.coalesce()Coalesces this sparse COO tensor.CooTensor.coalesce(BinaryOperator<Double> aggregator) Coalesces this sparse COO tensor.CooTensor.copy()Creates a deep copy of this tensor.Computes the element-wise quotient between two tensors.CooTensor.dropZeros()Drops any explicit zeros in this sparse COO tensor.Computes the element-wise multiplication of two tensors of the same shape.CooTensor.flatten()Flattens tensor to single dimension while preserving order of data.CooTensor.flatten(int axis) Flattens a tensor along the specified axis.CooTensor.makeLikeTensor(Shape shape, double[] data) 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.CooTensor.makeLikeTensor(Shape shape, double[] data, 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.CooTensor.makeLikeTensor(Shape shape, List<Double> data, 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.CooTensor.recip()Computes the element-wise reciprocals of the non-zero elements of this sparse tensor.Copies and reshapes this tensor.Sets the element of this tensor at the specified indices.CooTensor.sub(double b) Subtracts a scalar value from each non-zero value of this tensor.Subtracts a scalar value from each non-zero entry of this tensor.Computes the element-wise difference between two tensors of the same shape.CooTensor.T(int... axes) Computes the transpose of this tensor.CooTensor.T(int axis1, int axis2) Computes the transpose of a tensor by exchangingaxis1andaxis2.CooTensor.tensorTr(int axis1, int axis2) Computes the generalized trace of this tensor along the specified axes.CsrMatrix.tensorTr(int axis1, int axis2) Computes the generalized trace of this tensor along the specified axes.CooCTensor.toReal()Converts this complex vector to a real vector.CooMatrix.toTensor()Converts this sparse COO matrix to an equivalentsparse COO tensor.CooVector.toTensor()Converts this sparse vector to an equivalent tensor.CsrMatrix.toTensor()Converts this sparse CSR matrix to an equivalent sparse COO tensor.static CooTensorCooTensor.unsafeMake(Shape shape, double[] 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 CooTensorModifier and TypeMethodDescriptionComputes the element-wise sum between two tensors of the same shape.Computes the element-wise quotient between two tensors.Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise difference between two tensors of the same shape.Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.Constructors in org.flag4j.arrays.sparse with parameters of type CooTensor -
Uses of CooTensor in org.flag4j.linalg.ops.dense_sparse.coo.real
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real that return CooTensorModifier and TypeMethodDescriptionstatic CooTensorComputes the element-wise division between a real dense tensor and a real sparse tensor.static CooTensorComputes the element-wise multiplication between a real dense tensor and a real sparse tensor.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real with parameters of type CooTensorModifier and TypeMethodDescriptionstatic TensorAdds a real dense tensor to a real sparse tensor.static TensorAdds a scalar to a real sparse COO tensor.static voidAdds a real dense tensor to a real sparse tensor and stores the result in the first tensor.static CooTensorComputes the element-wise division between a real dense tensor and a real sparse tensor.static CooTensorComputes the element-wise multiplication between a real dense tensor and a real sparse tensor.static TensorSubtracts a real sparse tensor from a real dense tensor.static TensorSubtracts a scalar from each entry of a real sparse COO tensor.static TensorSubtracts a real dense tensor from a real sparse tensor.static voidSubtracts a real sparse tensor from a real dense tensor and stores the result in the dense tensor.static booleanRealDenseSparseEquals.tensorEquals(Tensor A, CooTensor B) Checks if a real dense tensor is equal to a real sparse tensor. -
Uses of CooTensor in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CooTensorModifier and TypeMethodDescriptionstatic CTensorRealComplexDenseCooOps.add(CooTensor src1, Complex128 b) Adds a scalar to a real sparse COO tensor.static 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 CTensorRealComplexDenseCooOps.sub(CooTensor src1, Complex128 b) Subtracts a scalar from a real sparse COO tensor.static booleanRealComplexDenseSparseEquals.tensorEquals(CTensor A, CooTensor B) Checks if a complex dense tensor is equal to a real sparse tensor. -
Uses of CooTensor in org.flag4j.linalg.ops.dense_sparse.coo.real_field_ops
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_field_ops with parameters of type CooTensorModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractDenseFieldTensor<?, T> RealFieldDenseCooOps.add(AbstractDenseFieldTensor<?, T> src1, CooTensor src2) Adds a dense complex tensor to a real sparse tensor.static <T extends Field<T>>
voidRealFieldDenseCooOps.addEq(AbstractDenseFieldTensor<?, T> src1, CooTensor src2) Computes element-wise addition between a complex dense tensor and a real sparse tensor.static <T extends Field<T>>
voidRealFieldDenseCooOps.elemMult(AbstractDenseFieldTensor<?, T> src1, CooTensor src2, T[] destEntries, int[][] destIndices) Computes the element-wise multiplication between a real dense tensor and a complex sparse tensor.static <T extends Field<T>>
AbstractDenseFieldTensor<?, T> RealFieldDenseCooOps.sub(AbstractDenseFieldTensor<?, T> src1, CooTensor src2) Adds a dense complex tensor to a real sparse tensor.static <T extends Field<T>>
AbstractDenseFieldTensor<?, T> RealFieldDenseCooOps.sub(CooTensor src1, AbstractDenseFieldTensor<?, T> src2) Subtracts a complex dense tensor from a real sparse tensor.static <T extends Field<T>>
voidRealFieldDenseCooOps.subEq(AbstractDenseFieldTensor<?, T> src1, CooTensor src2) Computes element-wise subtraction between a complex dense tensor and a real sparse tensor. -
Uses of CooTensor in org.flag4j.linalg.ops.sparse.coo.real
Methods in org.flag4j.linalg.ops.sparse.coo.real that return CooTensorModifier and TypeMethodDescriptionstatic CooTensorSums two sparse COO tensors and stores result in a new COO tensor.static CooTensorComputes the element-wise multiplication between two sparse COO tensors.static CooTensorComputes difference between two sparse COO tensors and stores result in a new COO tensor.Methods in org.flag4j.linalg.ops.sparse.coo.real with parameters of type CooTensorModifier and TypeMethodDescriptionstatic CooTensorSums two sparse COO tensors and stores result in a new COO tensor.static booleanRealSparseEquals.allCloseTensor(CooTensor src1, CooTensor src2, double relTol, double absTol) Checks that all non-zero data are "close" according toRealProperties.allClose(double[], double[], double, double)and all indices are the same.static booleanRealSparseEquals.cooTensorEquals(CooTensor a, CooTensor b) Checks if two real sparse tensors are real.static CooTensorComputes the element-wise multiplication between two sparse COO tensors.static CooTensorComputes difference between two sparse COO tensors and stores result in a new COO tensor.static TensorComputes the tensor contraction of this tensor with a specified tensor over the specified set of axes. -
Uses of CooTensor in org.flag4j.linalg.ops.sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.sparse.coo.real_complex with parameters of type CooTensorModifier 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 CooTensor in org.flag4j.rng
Methods in org.flag4j.rng that return CooTensorModifier and TypeMethodDescriptionRandomSparseTensor.randomCooTensor(Shape shape, double min, double max, double sparsity) Constructs a COO tensor with the specified shape and sparsity filled with pseudo-random values from a uniform distribution in [min, max).RandomSparseTensor.randomCooTensor(Shape shape, double min, double max, int nnz) Constructs a COO tensor with the specified shape and number of non-zero entries filled with pseudo-random values from a uniform distribution in [min, max).