Class FMaskPrimitive

java.lang.Object
org.ejml.masks.Mask
org.ejml.masks.FMaskPrimitive

@Generated("org.ejml.masks.DMaskPrimitive") public class FMaskPrimitive extends Mask
Mask implementation backed by a primitive array
  • Field Details

    • numCols

      public final int numCols
      Number of columns of the wrapped matrix
    • zeroElement

      public final float zeroElement
      Value representing that the entry is not set in the mask
  • Constructor Details

    • FMaskPrimitive

      public FMaskPrimitive(float[] values, int numCols, boolean negated, float zeroElement)
  • Method Details

    • isSet

      public boolean isSet(int row, int col)
      Specified by:
      isSet in class Mask
      Returns:
      Whether the matrix entry is set in the mask
    • getNumCols

      public int getNumCols()
      Specified by:
      getNumCols in class Mask
      Returns:
      The number of columns of the wrapped matrix
    • getNumRows

      public int getNumRows()
      Specified by:
      getNumRows in class Mask
      Returns:
      The number of rows of the wrapped matrix
    • setIndexColumn

      public void setIndexColumn(int column)
      Description copied from class: Mask
      For faster access on a specific column (on at a time) ! Only useful for sparse masks
      Specified by:
      setIndexColumn in class Mask
      Parameters:
      column - column to index
    • maxMaskedEntries

      public int maxMaskedEntries()
      Description copied from class: Mask
      Pessimistic estimation of entries set in the mask
      Specified by:
      maxMaskedEntries in class Mask
      Returns:
      Maximum number of set entries in mask
    • isSet

      public boolean isSet(int index)
      Specified by:
      isSet in class Mask
      Returns:
      Whether the vector entry is set in the mask