Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804