This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

hiprandgeneratelognormaldouble Interface Reference

hiprandgeneratelognormaldouble Interface Reference#

HIPFORT API Reference: hipfort_hiprand::hiprandgeneratelognormaldouble Interface Reference
hipfort_hiprand::hiprandgeneratelognormaldouble Interface Reference

Generates log-normally distributed doubles. More...

Public Member Functions

integer(kind(hiprand_status_success)) function hiprandgeneratelognormaldouble_ (generator, output_data, n, mean, stddev)
 

Detailed Description

Generates log-normally distributed doubles.

Generates n log-normally distributed 64-bit double-precision floating-point values and saves them to output_data.

Parameters
generator- Generator to use
output_data- Pointer to memory to store generated numbers
n- Number of doubles to generate
mean- Mean value of log normal distribution
stddev- Standard deviation value of log normal distribution
Returns
  • HIPRAND_STATUS_NOT_INITIALIZED if the generator was not initialized
  • HIPRAND_STATUS_LAUNCH_FAILURE if generator failed to launch kernel
  • HIPRAND_STATUS_LENGTH_NOT_MULTIPLE if n is not even, output_data is not aligned to sizeof(double2) bytes, or n is not a multiple of the dimension of used quasi-random generator
  • HIPRAND_STATUS_SUCCESS if random numbers were successfully generated

Member Function/Subroutine Documentation

◆ hiprandgeneratelognormaldouble_()

integer(kind(hiprand_status_success)) function hipfort_hiprand::hiprandgeneratelognormaldouble::hiprandgeneratelognormaldouble_ ( type(c_ptr), value  generator,
type(c_ptr), value  output_data,
integer(c_size_t), value  n,
real(c_double), value  mean,
real(c_double), value  stddev 
)

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