Documentation of 'cc.redberry.core.tensor.BasicTensorIterator' Java class
BasicTensorIterator
cc.redberry.core.tensor

Class BasicTensorIterator

  • All Implemented Interfaces:
    java.util.Iterator<Tensor>


    public final class BasicTensorIterator
    extends java.lang.Object
    implements java.util.Iterator<Tensor>
    The implementation of Iterator<Tensor> based on Tensor Tensor.get(int) and Tensor.size() methods.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      BasicTensorIterator(Tensor tensor)
      Creates iterator over tensor elements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext() 
      Tensor next() 
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • BasicTensorIterator

        public BasicTensorIterator(Tensor tensor)
        Creates iterator over tensor elements.
        Parameters:
        tensor - tensor
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Tensor>
      • next

        public Tensor next()
        Specified by:
        next in interface java.util.Iterator<Tensor>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Tensor>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.