ITM Grid Service Library: Fortran 90
|
Go to the source code of this file.
Modules | |
module | itm_combinations |
Functions/Subroutines | |
integer, dimension(ccounttotal, size(dmax)) | itm_combinations::enumerate_combinations (dmax, dsum, cCountTotal) |
Service routines for counting and enumerating combinations of a vector (i_1, ..., i_n), with the range of every component i_j is 0 <= i_j <= d_j and for the sum of all components holds sum(i_j) = dsum for a given value of dsum. | |
subroutine | itm_combinations::allocate_combinations (dmax, dsum, comb) |
Convenience routine: allocate and populate an array with all possible combinations. |