Class SubMatrix.SubMatrixIteratorImpl

java.lang.Object
org.nuiton.math.matrix.SubMatrix.SubMatrixIteratorImpl
All Implemented Interfaces:
BasicMatrixIterator, MatrixIterator
Enclosing class:
SubMatrix

protected class SubMatrix.SubMatrixIteratorImpl extends Object implements MatrixIterator
  • Field Details

    • subMatrix

      protected SubMatrix subMatrix
    • cpt

      protected int[] cpt
    • last

      protected int[] last
    • posSems

      protected Object[] posSems
  • Constructor Details

    • SubMatrixIteratorImpl

      public SubMatrixIteratorImpl(SubMatrix subMatrix)
  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: BasicMatrixIterator
      Retourne vrai s'il existe un suivant.
      Specified by:
      hasNext in interface BasicMatrixIterator
      Returns:
      vrai s'il y a un suivant, faux sinon
    • next

      public boolean next()
      Description copied from interface: BasicMatrixIterator
      Passe à l'élément suivant.
      Specified by:
      next in interface BasicMatrixIterator
      Returns:
      vrai s'il y a un suivant, faux sinon
    • getCoordinates

      public int[] getCoordinates()
      Description copied from interface: BasicMatrixIterator
      Retourne les coordonnés de l'élément.
      Specified by:
      getCoordinates in interface BasicMatrixIterator
      Returns:
      current element coordinates
    • getSemanticsCoordinates

      public Object[] getSemanticsCoordinates()
      Description copied from interface: MatrixIterator
      Retourne les coordonnés de l'élément, en sémantique. Si la matrice n'a pas de sémantique alors retourne null. ATTENTION: Pour des raisons de performance, plusieurs appels successifs à cette méthode retourne la même instance de tableau avec de nouvelle coordonnées. Pour sauvegarder ces coordonnées, il faudra copier le tableau retourné.
      Specified by:
      getSemanticsCoordinates in interface MatrixIterator
      Returns:
      current element semantics
    • getValue

      public double getValue()
      Description copied from interface: BasicMatrixIterator
      Retourne la valeur courant pointé par l'iterator.
      Specified by:
      getValue in interface BasicMatrixIterator
      Returns:
      current element value
    • setValue

      public void setValue(double value)
      Description copied from interface: BasicMatrixIterator
      Modifie la valeur courant pointé par l'iterator.
      Specified by:
      setValue in interface BasicMatrixIterator
      Parameters:
      value - new value to set to current element