partition function

Create Partitions of an RI array.