Developer Reference

Contents

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 in
StreamStateSize
field.
VSL_RNG_ERROR_BAD_WORD_SIZE
Bad value in
WordSize
field.
VSL_RNG_ERROR_BAD_NSEEDS
Bad value in
NSeeds
field.
VSL_RNG_ERROR_BAD_NBITS
Bad value in
NBits
field.
VSL_ERROR_NULL_PTR
At least one of the fields
iBrng
,
dBrng
,
sBrng
or
InitStream
is a
NULL
pointer.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.