Creates new stream and reads stream descriptive data, including stream state, from binary file.
Fortran:
errstatus = vslloadstreamf( stream, fname )
C:
errstatus = vslLoadStreamF( &stream, fname );
The FORTRAN 77 interfaces are specified in the mkl_vsl.f77 include file, the Fortran 90 interfaces are specified in the mkl_vsl.f90 include file, and the C interfaces are specified in the mkl_vsl_functions.h include file.
Name |
Type |
Description |
---|---|---|
fname |
FORTRAN 77: CHARACTER(*) Fortran 90: CHARACTER(*), INTENT(IN) C: const char* |
Fortran: File name specified as a C-style null-terminated string C: File name specified as a Fortran-style character string |
Name |
Type |
Description |
---|---|---|
stream |
FORTRAN 77: INTEGER*4 stream(2) Fortran 90: TYPE(VSL_STREAM_STATE), INTENT(OUT) C: VSLStreamStatePtr* |
Fortran: Descriptor of a new random stream C: Pointer to a new random stream |
errstatus |
Fortran: INTEGER C: int |
Error status of the operation |
The LoadStreamF function creates a new stream and reads stream descriptive data, including the stream state, from the binary file. A new random stream is created using the stream descriptive data from the binary file with the name fname. If the stream cannot be read (for example, an I/O error occurs or the file format is invalid), errstatus has a non-zero value. To save random stream to the file, use SaveStreamF function.
Indicates no error, execution is successful.
fname is a NULL pointer.
Indicates an error in opening the file.
Indicates an error in writing the file.
Indicates an error in closing the file.
System cannot allocate memory for internal needs.
Unknown file format.
File format version is unsupported.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.