#include "partition.h" // Create Partition out of an array of block sizes. // inds can have any offset Partition1D::Partition1D(const IntArray1& inds) : lastind(0,inds.Size()) { lastind[0] = 0; for(int i=1; i <= inds.Size(); i++) lastind[i] = lastind(i-1) + inds(i + inds->Lower() - 1); }