27 for (
int i = 0; i < out.size(); i++)
29 std::cout << out[i] <<
" ";
31 std::cout << std::endl;
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
void FairDivideLow(int ntot, int npart, IV &adist)
partition ntot elements among npart
void print_vector(vector< int > &out)
A collection of functions for dividing fairly.
REQUIRE(std::filesystem::exists(filename))
void FairDivideAligned(const int ntot, const int base, const int npart, const int me, int &first, int &last)
Partition ntot over npart and the size of each partition is a multiple of base size.
std::vector< IV > fairDivide(IV ntot, IV npart)
return the occupation vector for ntot entities partitioned npart ways.