/* read class and order bounds and step size information
required in iteration of the algorithm */
void iteration_information(int *subgroup_rank, struct pga_vars *flag,
int *class_bound,
int *order_bound,
int **step_sequence, struct pga_vars *pga, struct pcp_vars *pcp)
{
Logical All, Constant = 0;
int nmr_iterations; register int i;
read_class_bound(class_bound, pcp);
read_value(TRUE, "Construct all descendants? ", &All, INT_MIN);
if (All) {
pga->step_size = ALL;
read_value(TRUE, "Set an order bound on the descendants? ",
order_bound,
INT_MIN);
if (*order_bound)
read_order_bound(order_bound, pcp); else
*order_bound = ALL;
} else
*order_bound = ALL;
nmr_iterations = *class_bound - pcp->cc + 1;
if (!All) {
if (nmr_iterations != 1) {
read_value(TRUE, "Constant step size? ", &Constant, INT_MIN);
}
if (Constant || nmr_iterations == 1) {
read_step_size(pga, pcp);
Constant = TRUE;
}
}
if (!All && !Constant) {
*step_sequence = allocate_vector(nmr_iterations, 1, 0);
printf("Input %d step sizes: ", nmr_iterations);
for (i = 1; i < nmr_iterations; ++i)
read_value(FALSE, "", &(*step_sequence)[i], 1);
read_value(TRUE, "", &(*step_sequence)[i], 1);
} else
*step_sequence = NULL;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.