vslRegisterBrng
vslRegisterBrng
Registers user-defined basic generator.
Syntax
brng
=
vslRegisterBrng
&properties
Include Files
- mkl.h
Input Parameters
Name | Type | Description |
---|---|---|
properties | const VSLBRngProperties* | Pointer to the structure containing properties of the basic generator to be registered |
Output Parameters
Name | Type | Description |
---|---|---|
brng | int | Number (index) of the registered basic generator; used for identification. Negative values indicate the registration error. |
Description
An example of a registration procedure can be found in the respective directory of the VS examples.
Return Values
- VSL_ERROR_OK,VSL_STATUS_OK
- Indicates no error, execution is successful.
- VSL_RNG_ERROR_BRNG_TABLE_FULL
- Registration cannot be completed due to lack of free entries in the table of registered BRNGs.
- VSL_RNG_ERROR_BAD_STREAM_STATE_SIZE
- Bad value inStreamStateSizefield.
- VSL_RNG_ERROR_BAD_WORD_SIZE
- Bad value inWordSizefield.
- VSL_RNG_ERROR_BAD_NSEEDS
- Bad value inNSeedsfield.
- VSL_RNG_ERROR_BAD_NBITS
- Bad value inNBitsfield.
- VSL_ERROR_NULL_PTR
- At least one of the fieldsiBrng,dBrng,sBrngorInitStreamis aNULLpointer.