|
NAG[g05cfc] NAG[nag_save_random_state] - Save state of random number generating functions
|
|
Calling Sequence
g05cfc(istate, xstate)
nag_save_random_state(. . .)
Parameters
|
istate - Vector(1.., datatype=integer[kernelopts('wordsize')/8]);
xstate - Vector(1.., datatype=float[8]);
|
|
|
On exit: information about the generator.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_save_random_state (g05cfc) saves the value of the seed used by the basic generator in the g05 Chapter.
|
|
Description
|
|
nag_save_random_state (g05cfc) saves information about the basic generator to enable g05cgc (nag_restore_random_state) subsequently to restore the basic generator to its current state. The values of istate and xstate must not be altered between a call of nag_save_random_state (g05cfc) and a call of g05cgc (nag_restore_random_state).
|
|
Error Indicators and Warnings
|
|
|
|
|
Examples
|
|
>
|
istate := Vector(9, datatype=integer[kernelopts('wordsize')/8]):
xstate := Vector(4, datatype=float[8]):
NAG:-g05cbc(0):
NAG:-g05cac():
NAG:-g05cfc(istate, xstate):
|
|
|
Download Help Document
Was this information helpful?