Uses of Class
org.flag4j.arrays.sparse.CooFieldMatrix
Packages that use CooFieldMatrix
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooFieldMatrix in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with parameters of type CooFieldMatrixModifier and TypeMethodDescription<U extends Field<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(CooFieldMatrix<U> matrix) <U extends Field<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(CooFieldMatrix<U> matrix) <U extends Field<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(CooFieldMatrix<U> matrix) <U extends Field<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(CooFieldMatrix<U> matrix) MatrixVisitor.visit
(CooFieldMatrix<U> matrix) <U extends Field<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(CooFieldMatrix<U> matrix) -
Uses of CooFieldMatrix in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooFieldMatrixModifier and TypeMethodDescriptionFieldMatrix.makeLikeCooMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix of similar type to this dense matrix.protected CooFieldMatrix
<T> FieldMatrix.makeLikeCooTensor
(Shape shape, T[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.FieldMatrix.toCoo()
Converts this dense tensor to an equivalent sparse COO tensor.FieldMatrix.toCoo
(double estimatedSparsity) Converts this matrix to an equivalent sparse COO matrix. -
Uses of CooFieldMatrix in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooFieldMatrix in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
CooFieldMatrix<T extends Field<T>>
Instances of this class represent a sparse matrix whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedField
type.class
CooFieldVector<T extends Field<T>>
Represents a sparse vector 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 CooFieldMatrixModifier and TypeMethodDescriptionCsrFieldMatrix.makeLikeCooMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix of a similar type to this sparse CSR matrix.CooFieldVector.makeLikeMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a COO matrix with the specified shape, non-zero data, and row and column indices.CooFieldMatrix.makeLikeTensor
(Shape shape, List<T> entries, List<Integer> rowIndices, List<Integer> colIndices) Constructs a COO matrix with the specified shape, non-zero data, and non-zero indices.CooFieldMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooFieldMatrix.makeLikeTensor
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO tensor of the same type as this tensor with the specified non-zero data and indices.CsrFieldMatrix.toCoo()
Converts this sparse CSR matrix to an equivalent sparse COO matrix.CooFieldTensor.toMatrix()
Converts this tensor to an equivalent matrix.Converts this tensor to a matrix with the specified shape.CooFieldVector.toMatrix
(boolean columVector) Converts a vector to an equivalent matrix representing either a row or column vector.Methods in org.flag4j.arrays.sparse with parameters of type CooFieldMatrixModifier and TypeMethodDescriptionCooFieldMatrix.tensorDot
(CooFieldMatrix<T> src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.