org.eclipse.january.dataset

## Class BroadcastSingleIterator

- java.lang.Object
- - org.eclipse.january.dataset.IndexIterator
  - - org.eclipse.january.dataset.BroadcastIteratorBase
    - - org.eclipse.january.dataset.BroadcastSelfIterator
      - - org.eclipse.january.dataset.BroadcastSingleIterator

-     public class BroadcastSingleIterator
      extends BroadcastSelfIterator

  Class to run over a pair of datasets in parallel with NumPy broadcasting of second dataset

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.january.dataset.BroadcastIteratorBase

      `aDataset, aIndex, asDouble, bDataset, bDouble, bIndex, bLong, maxShape, pos, read`

    - ### Fields inherited from class org.eclipse.january.dataset.IndexIterator

      `index`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BroadcastSingleIterator(Dataset a, Dataset b)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | `getFirstShape()`
    `int[]` | `getSecondShape()`
    `boolean` | `hasNext()`
    `void` | `reset()` Reset iterator

    - ### Methods inherited from class org.eclipse.january.dataset.BroadcastSelfIterator

      `createIterator, storeCurrentValues`

    - ### Methods inherited from class org.eclipse.january.dataset.BroadcastIteratorBase

      `getPos, getShape, isOutputDouble, setOutputDouble`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BroadcastSingleIterator

          public BroadcastSingleIterator(Dataset a,
                                 Dataset b)

      Parameters:
        `a` -
        `b` -

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in class `IndexIterator`
      Returns:
        true if there is another iteration

    - #### getFirstShape

          public int[] getFirstShape()

      Returns:
        shape of first broadcasted dataset

    - #### getSecondShape

          public int[] getSecondShape()

      Returns:
        shape of second broadcasted dataset

    - #### reset

          public void reset()

      Description copied from class: `IndexIterator`
      Reset iterator
      Specified by:
        `reset` in class `IndexIterator`

Copyright © 2014–2018 Eclipse Foundation. All rights reserved.