hiprandsetquasirandomgeneratordimensions Interface Reference

hiprandsetquasirandomgeneratordimensions Interface Reference#

HIPFORT API Reference: hipfort_hiprand::hiprandsetquasirandomgeneratordimensions Interface Reference
hipfort_hiprand::hiprandsetquasirandomgeneratordimensions Interface Reference

Set the number of dimensions of a quasi-random number generator. More...

Public Member Functions

integer(kind(hiprand_status_success)) function hiprandsetquasirandomgeneratordimensions_ (generator, dimensions)
 

Detailed Description

Set the number of dimensions of a quasi-random number generator.

Set the number of dimensions of a quasi-random number generator. Supported values of dimensions are 1 to 20000.

  • This operation resets the generator's internal state.
  • This operation does not change the generator's offset.
Parameters
generator- Quasi-random number generator
dimensions- Number of dimensions
Returns
  • HIPRAND_STATUS_NOT_CREATED if the generator wasn't created
  • HIPRAND_STATUS_TYPE_ERROR if the generator is not a quasi-random number generator
  • HIPRAND_STATUS_OUT_OF_RANGE if dimensions is out of range
  • HIPRAND_STATUS_SUCCESS if the number of dimensions was set successfully

Member Function/Subroutine Documentation

◆ hiprandsetquasirandomgeneratordimensions_()

integer(kind(hiprand_status_success)) function hipfort_hiprand::hiprandsetquasirandomgeneratordimensions::hiprandsetquasirandomgeneratordimensions_ ( type(c_ptr), value  generator,
integer(c_int), value  dimensions 
)

The documentation for this interface was generated from the following file: