long advance_counter(long *counter, long *max_count, long n_indices)
Advances the counter array based on maximum counts.
long advance_values(double *value, long *value_index, double *initial, double *step, long n_values, long *counter, long *max_count, long n_indices)
Sequences an array of values systematically to cover an n-dimensional grid.