<< lowdisc_soboltau Static Functions Support Functions >>

Low Discrepancy >> Low Discrepancy > Static Functions > lowdisc_stopall

lowdisc_stopall

Stop all fast sequences.

Calling Sequence

lowdisc_stopall ( )

Description

This function allows to stop all fast sequences. This might be handy in case of interactive error of the user and may allow to reset all "lost" sequences.

Examples

lowdisc_stopall ( )

// Example of what can go wrong...
// We create a Fast Reverse Halton sequence.
lds = lowdisc_new("reversehaltonf");
lds = lowdisc_startup (lds);
// We create a Fast Reverse Halton sequence again.
lds = lowdisc_new("reversehaltonf");
lds = lowdisc_startup (lds);
// This creates the error message :
// "Low Discrepancy Module Error ! revhal_startup is already done."
// It would suffice to call lowdisc_destroy(lds).
// But we can use a more brutal function, which resets all sequences.
lowdisc_stopall ( );
// Now it works again.
lds = lowdisc_new("reversehaltonf");
lds = lowdisc_startup (lds);
lds = lowdisc_destroy(lds);

Authors

<< lowdisc_soboltau Static Functions Support Functions >>