Uses of Class
org.flag4j.arrays.sparse.CooSemiringVector
Packages that use CooSemiringVector
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooSemiringVector in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooSemiringVectorModifier and TypeMethodDescriptionprotected CooSemiringVector
<T> SemiringVector.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor. -
Uses of CooSemiringVector in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooSemiringVector in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
CooSemiringMatrix<T extends Semiring<T>>
Represents a sparse matrix whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.class
CooSemiringVector<T extends Semiring<T>>
Represents a sparse vector whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.class
CsrSemiringMatrix<T extends Semiring<T>>
Instances of this class represent a sparse matrix using the compressed sparse row (CSR) format where all data elements belonging to a specifiedSemiring
type.Methods in org.flag4j.arrays.sparse that return CooSemiringVectorModifier and TypeMethodDescriptionCsrSemiringMatrix.getCol
(int colIdx, int rowStart, int rowEnd) Gets a range of a column of this matrix.CsrSemiringMatrix.getDiag
(int diagOffset) Gets the elements of this matrix along the specified diagonal.CsrSemiringMatrix.getRow
(int rowIdx, int colStart, int colEnd) Gets a range of a row of this matrix.Constructs a COO vector with the specified shape, non-zero data, and non-zero indices.CooSemiringVector.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooSemiringVector.makeLikeTensor
(Shape shape, T[] entries, int[] indices) Constructs a sparse COO vector of the same type as this vector with the specified non-zero data and indices.CooSemiringMatrix.makeLikeVector
(Shape shape, T[] entries, int[] indices) Constructs a sparse COO vector of a similar type to this COO matrix.Methods in org.flag4j.arrays.sparse that return types with arguments of type CooSemiringVectorModifier and TypeMethodDescriptionCooSemiringMatrix.makeLikeCsrMatrix
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix of a similar type to this sparse COO matrix.Methods in org.flag4j.arrays.sparse with parameters of type CooSemiringVectorModifier and TypeMethodDescriptionCooSemiringMatrix.mult
(CooSemiringVector<T> b) Computes the matrix-vector multiplication of a vector with this matrix.CsrSemiringMatrix.mult
(CooSemiringVector<T> b) Computes the matrix-vector multiplication of a vector with this matrix.