Developer Reference

Contents

vslCopyStreamState

Creates a copy of a random stream state.

Syntax

status
=
vslCopyStreamState
(
deststream
,
srcstream
);
Include Files
  • mkl.h
Input Parameters
Name
Type
Description
srcstream
const VSLStreamStatePtr
Pointer to the stream state structure, from which the state structure is copied
Output Parameters
Name
Type
Description
deststream
VSLStreamStatePtr
Pointer to the stream state structure where the stream state is copied
Description
The
vslCopyStreamState
function copies a stream state from
srcstream
to the existing
deststream
stream. Both the streams should be generated by the same basic generator. An error message is generated when the index of the BRNG that produced
deststream
stream differs from the index of the BRNG that generated
srcstream
stream.
Unlike
vslCopyStream
function, which creates a new stream and copies both the stream state and other data from
srcstream
, the function
vslCopyStreamState
copies only
srcstream
stream state data to the generated
deststream
stream.
Return Values
VSL_ERROR_OK
,
VSL_STATUS_OK
Indicates no error, execution is successful.
VSL_ERROR_NULL_PTR
Either
srcstream
or
deststream
is a
NULL
pointer.
VSL_RNG_ERROR_BAD_STREAM
Either
srcstream
or
deststream
is not a valid random stream.
VSL_RNG_ERROR_BRNGS_INCOMPATIBLE
BRNG associated with
srcstream
is not compatible with BRNG associated with
deststream
.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804