Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 10/31/2024
Public
Document Table of Contents

RandUniform

Generates the pseudo-random samples with a uniform distribution.

Syntax

IppStatus ippsRandUniform_8u(Ipp8u* pDst, int len, IppsRandUniState_8u* pRandUniState);

IppStatus ippsRandUniform_16s(Ipp16s* pDst, int len, IppsRandUniState_16s* pRandUniState);

IppStatus ippsRandUniform_32f(Ipp32f* pDst, int len, IppsRandUniState_32f* pRandUniState);

IppStatus ippsRandUniform_64f(Ipp64f* pDst, int len, IppsRandUniState_64f* pRandUniState);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

pDst

Pointer to the array which stores the samples.

len

Number of samples to be computed.

pRandUniState

Pointer to the structure containing parameters for the generator of noise.

Description

This function generates len pseudo-random samples with a uniform distribution and stores them in the array pDst. Initial parameters of the generator are set in the generator state structure pRandUniState. Before calling ippsRandUniform, you must initialize the generator state by calling the function RandUniformInit.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pDst or pRandUniState pointer is NULL.

ippStsContextMatchErr

Indicates an error when the state identifier is incorrect.