Uses of Class
org.flag4j.arrays.backend.field_arrays.AbstractCsrFieldMatrix
Packages that use AbstractCsrFieldMatrix
Package
Description
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of AbstractCsrFieldMatrix in org.flag4j.arrays.backend.field_arrays
Classes in org.flag4j.arrays.backend.field_arrays with type parameters of type AbstractCsrFieldMatrixModifier and TypeClassDescriptionclass
AbstractCsrFieldMatrix<T extends AbstractCsrFieldMatrix<T,
U, V, W>, U extends AbstractDenseFieldMatrix<U, ?, W>, V extends AbstractCooFieldVector<V, ?, ?, U, W>, W extends Field<W>> Methods in org.flag4j.arrays.backend.field_arrays that return AbstractCsrFieldMatrixModifier and TypeMethodDescriptionabstract AbstractCsrFieldMatrix
<?, U, V, W> AbstractCooFieldMatrix.makeLikeCsrMatrix
(Shape shape, W[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix of a similar type to this sparse COO matrix.abstract AbstractCsrFieldMatrix
<?, T, ?, V> AbstractDenseFieldMatrix.makeLikeCsrMatrix
(Shape shape, V[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix which is of a similar type as this dense matrix.AbstractCooFieldMatrix.toCsr()
Converts this sparse COO matrix to an equivalent sparse CSR matrix. -
Uses of AbstractCsrFieldMatrix in org.flag4j.arrays.sparse
Subclasses of AbstractCsrFieldMatrix in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
A complex sparse matrix stored in compressed sparse row (CSR) format.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. -
Uses of AbstractCsrFieldMatrix in org.flag4j.linalg.ops.dense_sparse.csr.field_ops
Methods in org.flag4j.linalg.ops.dense_sparse.csr.field_ops that return AbstractCsrFieldMatrixModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> DenseCsrFieldOps.applyBinOppToSparse
(AbstractDenseFieldMatrix<?, ?, T> src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2, BinaryOperator<T> opp) Applies an element-wise binary operation to a real dense and real sparse CSR matrix under the assumption thatopp.apply(x, 0d) = 0d
andopp.apply(0d, x) = 0d
.Methods in org.flag4j.linalg.ops.dense_sparse.csr.field_ops with parameters of type AbstractCsrFieldMatrixModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.add
(AbstractCsrFieldMatrix<?, ?, ?, T> a, AbstractDenseFieldMatrix<?, ?, T> b) Computes the element-wise sum of two matrices.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.applyBinOpp
(AbstractCsrFieldMatrix<?, ?, ?, T> src1, double b, BinaryOperator<T> opp, UnaryOperator<Double> uOpp) Applies the specified binary operator element-wise to a matrix and a scalar.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.applyBinOpp
(AbstractCsrFieldMatrix<?, ?, ?, T> src1, AbstractDenseFieldMatrix<?, ?, T> src2, BinaryOperator<T> opp, UnaryOperator<T> uOpp) Applies the specified binary operator element-wise to the two matrices.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.applyBinOpp
(AbstractCsrFieldMatrix<?, ?, ?, T> src1, T b, BinaryOperator<T> opp, UnaryOperator<T> uOpp) Applies the specified binary operator element-wise to a matrix and a scalar.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.applyBinOpp
(AbstractDenseFieldMatrix<?, ?, T> src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2, BinaryOperator<T> opp) Applies the specified binary operator element-wise to the two matrices.static <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> DenseCsrFieldOps.applyBinOppToSparse
(AbstractDenseFieldMatrix<?, ?, T> src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2, BinaryOperator<T> opp) Applies an element-wise binary operation to a real dense and real sparse CSR matrix under the assumption thatopp.apply(x, 0d) = 0d
andopp.apply(0d, x) = 0d
.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.sub
(AbstractCsrFieldMatrix<?, ?, ?, T> a, AbstractDenseFieldMatrix<?, ?, T> b) Computes the element-wise difference of two matrices.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> DenseCsrFieldOps.sub
(AbstractDenseFieldMatrix<?, ?, T> a, AbstractCsrFieldMatrix<?, ?, ?, T> b) Computes the element-wise difference of two matrices. -
Uses of AbstractCsrFieldMatrix in org.flag4j.linalg.ops.dense_sparse.csr.real_field_ops
Methods in org.flag4j.linalg.ops.dense_sparse.csr.real_field_ops that return AbstractCsrFieldMatrixModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> RealFieldDenseCsrOps.applyBinOppToSparse
(AbstractDenseFieldMatrix<?, ?, T> src1, CsrMatrix src2, BiFunction<T, Double, T> opp) Applies an element-wise binary operation to a real dense and real sparse CSR matrix under the assumption thatopp.apply(x, 0d) = 0d
andopp.apply(0d, x) = 0d
.static <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> RealFieldDenseCsrOps.applyBinOppToSparse
(Matrix src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2, BiFunction<Double, T, T> opp) Applies an element-wise binary operation to a real dense and real sparse CSR matrix under the assumption thatopp.apply(x, 0d) = 0d
andopp.apply(0d, x) = 0d
.static <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> RealFieldDenseCsrOps.applyBinOppToSparse
(CsrMatrix src1, AbstractDenseFieldMatrix<?, ?, T> src2, BiFunction<Double, T, T> opp) Applies an element-wise binary operation to a real sparse and complex dense CSR matrix under the assumption thatopp.apply(0d, x) = 0d
wherex
is aComplex128
.Methods in org.flag4j.linalg.ops.dense_sparse.csr.real_field_ops with parameters of type AbstractCsrFieldMatrixModifier and TypeMethodDescriptionstatic <T extends Field<T>>
AbstractCsrFieldMatrix<?, ?, ?, T> RealFieldDenseCsrOps.applyBinOppToSparse
(Matrix src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2, BiFunction<Double, T, T> opp) Applies an element-wise binary operation to a real dense and real sparse CSR matrix under the assumption thatopp.apply(x, 0d) = 0d
andopp.apply(0d, x) = 0d
.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> RealFieldDenseCsrMatMult.standard
(AbstractCsrFieldMatrix<?, ?, ?, T> src1, Matrix src2) Computes the matrix multiplication between a complex sparse CSR matrix and a real dense matrix.static <T extends Field<T>>
AbstractDenseFieldMatrix<?, ?, T> RealFieldDenseCsrMatMult.standard
(Matrix src1, AbstractCsrFieldMatrix<?, ?, ?, T> src2) Computes the matrix multiplication between a real dense matrix and a real sparse CSR matrix.static <T extends Field<T>>
AbstractDenseFieldVector<?, ?, T> RealFieldDenseCsrMatMult.standardVector
(AbstractCsrFieldMatrix<?, ?, ?, T> src1, Vector src2) Computes the matrix-vector multiplication between a real sparse CSR matrix and a complex dense vector.