Uses of Class
org.flag4j.arrays.dense.SemiringMatrix
Packages that use SemiringMatrix
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of SemiringMatrix in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with parameters of type SemiringMatrixModifier and TypeMethodDescription<U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(SemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(SemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(SemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(SemiringMatrix<U> matrix) MatrixVisitor.visit
(SemiringMatrix<U> matrix) <U extends Semiring<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(SemiringMatrix<U> matrix) -
Uses of SemiringMatrix in org.flag4j.arrays.dense
Subclasses with type arguments of type SemiringMatrix in org.flag4j.arrays.denseModifier and TypeClassDescriptionclass
SemiringMatrix<T extends Semiring<T>>
Instances of this class represents a dense matrix backed by aSemiring
array.class
SemiringVector<T extends Semiring<T>>
Instances of this class represents a dense vector backed by aSemiring
array.Methods in org.flag4j.arrays.dense that return SemiringMatrixModifier and TypeMethodDescriptionSemiringMatrix.div
(SemiringMatrix<T> b) Computes the element-wise quotient of two matrices.static <T extends Semiring<T>>
SemiringMatrix<T> SemiringMatrix.I
(int numRows, int numCols, T fieldValue) Constructs an identity-like matrix of the specified shape.static <T extends Semiring<T>>
SemiringMatrix<T> SemiringMatrix.I
(int size, T fieldValue) Constructs an identity matrix of the specified size.static <T extends Semiring<T>>
SemiringMatrix<T> Constructs an identity-like matrix of the specified shape.protected SemiringMatrix
<T> SemiringVector.makeLikeMatrix
(Shape shape, T[] entries) Constructs a matrix of similar type to this vector with the specifiedshape
anddata
.SemiringMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.SemiringMatrix.pow
(int n) Computes the matrix multiplication of this matrix with itselfn
times.SemiringMatrix.sub
(SemiringMatrix<T> b) Computes the element-wise difference of two matrices.Converts this tensor to a matrix with the specified shape.Methods in org.flag4j.arrays.dense with parameters of type SemiringMatrixModifier and TypeMethodDescriptionSemiringMatrix.div
(SemiringMatrix<T> b) Computes the element-wise quotient of two matrices.SemiringMatrix.sub
(SemiringMatrix<T> b) Computes the element-wise difference of two matrices. -
Uses of SemiringMatrix in org.flag4j.arrays.sparse
Subclasses with type arguments of type SemiringMatrix 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 SemiringMatrixModifier and TypeMethodDescriptionCooSemiringVector.makeLikeDenseMatrix
(Shape shape, T... entries) Constructs a dense matrix of a similar type as this vector with the specified shape and data.CooSemiringMatrix.makeLikeDenseTensor
(Shape shape, T[] entries) Constructs a dense tensor with the specifiedshape
anddata
which is a similar type to this sparse tensor.CsrSemiringMatrix.makeLikeDenseTensor
(Shape shape, T[] entries) Constructs a dense matrix which is of a similar type to this sparse CSR matrix.Methods in org.flag4j.arrays.sparse that return types with arguments of type SemiringMatrixModifier 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.