org.matheclipse.combinatoric
Class RosenNumberPartitionIterator
- java.lang.Object
-
- org.matheclipse.combinatoric.RosenIterator
-
- org.matheclipse.combinatoric.RosenNumberPartitionIterator
-
- All Implemented Interfaces:
- java.util.Iterator<int[]>
public class RosenNumberPartitionIterator extends RosenIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.matheclipse.combinatoric.RosenIterator
RosenIterator.Factory
-
-
Constructor Summary
Constructors Constructor and Description RosenNumberPartitionIterator(int n, int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]next()-
Methods inherited from class org.matheclipse.combinatoric.RosenIterator
count, hasNext, remove, reset
-
-
-
-
Constructor Detail
-
RosenNumberPartitionIterator
public RosenNumberPartitionIterator(int n, int k)- Parameters:
n- the number of elementsk- the number of partitioning the n elements into k parts
-
-
Method Detail
-
next
public final int[] next()
- Specified by:
nextin interfacejava.util.Iterator<int[]>- Overrides:
nextin classRosenIterator- See Also:
Iterator.next()
-
-
DMelt 3.0 © DataMelt by jWork.ORG