Uses of Class
org.flag4j.arrays.sparse.CooFieldVector
Packages that use CooFieldVector
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of CooFieldVector in org.flag4j.arrays.dense
Methods in org.flag4j.arrays.dense that return CooFieldVectorModifier and TypeMethodDescriptionprotected CooFieldVector
<T> FieldVector.makeLikeCooTensor
(Shape shape, T[] entries, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor. -
Uses of CooFieldVector in org.flag4j.arrays.sparse
Subclasses with type arguments of type CooFieldVector 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.class
CsrFieldMatrix<T extends Field<T>>
Instances of this class represent a sparse matrix using the compressed sparse row (CSR) format where all data elements belonging to a specifiedField
type.Methods in org.flag4j.arrays.sparse that return CooFieldVectorModifier and TypeMethodDescriptionCsrFieldMatrix.getCol
(int colIdx) Get the column of this matrix at the specified index.CsrFieldMatrix.getCol
(int colIdx, int rowStart, int rowEnd) Gets a specified column of this matrix betweenrowStart
(inclusive) androwEnd
(exclusive).CsrFieldMatrix.getDiag()
Extracts the diagonal elements of this matrix and returns them as a vector.CsrFieldMatrix.getDiag
(int diagOffset) Gets the elements of this matrix along the specified diagonal.CsrFieldMatrix.getRow
(int rowIdx) Get the row of this matrix at the specified index.CsrFieldMatrix.getRow
(int rowIdx, int colStart, int colEnd) Gets a specified row of this matrix betweencolStart
(inclusive) andcolEnd
(exclusive).Constructs a COO vector with the specified shape, non-zero data, and non-zero indices.CooFieldVector.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooFieldVector.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.CooFieldMatrix.makeLikeVector
(Shape shape, T[] entries, int[] indices) Constructs a sparse COO vector of a similar type to this COO matrix.CsrFieldMatrix.toVector()
Converts this matrix to an equivalent vector.Methods in org.flag4j.arrays.sparse with parameters of type CooFieldVectorModifier and TypeMethodDescriptionCooFieldMatrix.mult
(CooFieldVector<T> b) Computes the matrix-vector multiplication of a vector with this matrix.CsrFieldMatrix.mult
(CooFieldVector<T> b) Computes the matrix-vector multiplication of a vector with this matrix.