Package org.ejml.masks
Class FMaskSparse
java.lang.Object
org.ejml.masks.Mask
org.ejml.masks.FMaskSparse
@Generated("org.ejml.masks.DMaskSparse") public class FMaskSparse extends Mask
Mask implementation backed by a matrix in CSC format
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFMaskSparse.BuilderUtility class to buildFMaskSparse -
Field Summary
Fields Modifier and Type Field Description protected FMatrixSparseCSCmatrixfloatzeroElementValue representing that the entry is not set in the mask -
Constructor Summary
Constructors Constructor Description FMaskSparse(FMatrixSparseCSC matrix, boolean negated, float zeroElement, @Nullable IGrowArray gw, boolean indexFirstColumn) -
Method Summary
Modifier and Type Method Description intgetNumCols()intgetNumRows()booleanisSet(int idx)booleanisSet(int row, int col)intmaxMaskedEntries()Pessimistic estimation of entries set in the maskvoidsetIndexColumn(int col)For faster access on a specific column (on at a time) ! Only useful for sparse masksMethods inherited from class org.ejml.masks.Mask
compatible, print
-
Field Details
-
matrix
-
zeroElement
public final float zeroElementValue representing that the entry is not set in the mask
-
-
Constructor Details
-
FMaskSparse
public FMaskSparse(FMatrixSparseCSC matrix, boolean negated, float zeroElement, @Nullable @Nullable IGrowArray gw, boolean indexFirstColumn)
-
-
Method Details
-
isSet
public boolean isSet(int row, int col) -
isSet
public boolean isSet(int idx) -
getNumCols
public int getNumCols()- Specified by:
getNumColsin classMask- Returns:
- The number of columns of the wrapped matrix
-
getNumRows
public int getNumRows()- Specified by:
getNumRowsin classMask- Returns:
- The number of rows of the wrapped matrix
-
setIndexColumn
public void setIndexColumn(int col)Description copied from class:MaskFor faster access on a specific column (on at a time) ! Only useful for sparse masks- Specified by:
setIndexColumnin classMask- Parameters:
col- column to index
-
maxMaskedEntries
public int maxMaskedEntries()Description copied from class:MaskPessimistic estimation of entries set in the mask- Specified by:
maxMaskedEntriesin classMask- Returns:
- Maximum number of set entries in mask
-