Documentation of 'org.matheclipse.core.generic.combinatoric.NumberPartitionsIterable' Java class
NumberPartitionsIterable
org.matheclipse.core.generic.combinatoric

Class NumberPartitionsIterable

  • All Implemented Interfaces:
    java.lang.Iterable<int[]>, java.util.Iterator<int[]>


    public class NumberPartitionsIterable
    extends java.lang.Object
    implements java.util.Iterator<int[]>, java.lang.Iterable<int[]>
    Returns all partitions of a given int number (i.e. NumberPartitions(3) => [3,0,0] [2,1,0] [1,1,1] ). See Wikipedia - Integer partition
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext() 
      java.util.Iterator<int[]> iterator() 
      int[] 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
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • NumberPartitionsIterable

        public NumberPartitionsIterable(int num)
      • NumberPartitionsIterable

        public NumberPartitionsIterable(int num,
                                        int l)
    • Method Detail

      • next

        public int[] next()
        Specified by:
        next in interface java.util.Iterator<int[]>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<int[]>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<int[]>
      • iterator

        public java.util.Iterator<int[]> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<int[]>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.