rocrand_create_poisson_distribution Interface Reference

rocrand_create_poisson_distribution Interface Reference#

HIPFORT API Reference: hipfort_rocrand::rocrand_create_poisson_distribution Interface Reference
hipfort_rocrand::rocrand_create_poisson_distribution Interface Reference

Construct the histogram for a Poisson distribution. More...

Public Member Functions

integer(kind(rocrand_status_success)) function rocrand_create_poisson_distribution_ (lambda, discrete_distribution)
 

Detailed Description

Construct the histogram for a Poisson distribution.

Construct the histogram for the Poisson distribution with lambda lambda.

Parameters
lambda- lambda for the Poisson distribution
discrete_distribution- pointer to the histogram in device memory
Returns
  • ROCRAND_STATUS_ALLOCATION_FAILED if memory could not be allocated
  • ROCRAND_STATUS_OUT_OF_RANGE if discrete_distribution pointer was null
  • ROCRAND_STATUS_OUT_OF_RANGE if lambda is non-positive
  • ROCRAND_STATUS_SUCCESS if the histogram was ructed successfully

Member Function/Subroutine Documentation

◆ rocrand_create_poisson_distribution_()

integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_create_poisson_distribution::rocrand_create_poisson_distribution_ ( real(c_double), value  lambda,
type(c_ptr)  discrete_distribution 
)

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