Package org.codehaus.groovy.util

# Class DoubleDoubleArrayColumnIterator

java.lang.Object
org.codehaus.groovy.util.DoubleDoubleArrayColumnIterator

All Implemented Interfaces:
  `Iterator<double[]>`

public class DoubleDoubleArrayColumnIterator extends Object implements Iterator<double[]>
An iterator providing the columns of a double[][]. In the case of an array with different size rows, the number of columns will be equal to the length of the smallest row.

Since:
  5.0.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DoubleDoubleArrayColumnIterator(double[][] array)`
  Creates an iterator over the columns of the supplied matrix.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `double[]`
  `next()`
  `void`
  `remove()`

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

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

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining`

- ## Constructor Details

  - ### DoubleDoubleArrayColumnIterator

    public DoubleDoubleArrayColumnIterator(double[][] array)
    Creates an iterator over the columns of the supplied matrix.

    The iteration stops at the length of the shortest row.

    Parameters:
      `array` - the rows to traverse by column
    Throws:
      `NullPointerException` - if `array` is `null`

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<double[]>`

  - ### next

    public double[] next()
    Specified by:
      `next` in interface `Iterator<double[]>`

  - ### remove

    public void remove()
    Specified by:
      `remove` in interface `Iterator<double[]>`