Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

RandUniform issue

Isaac_D_
Beginner
115 Views

Hello,

I'm trying to use the function ippsRandUniform_Direct_64f, but I can't obtain anything, I just get a vector full of zeros. Here is the function I'm using, maybe there's something wrong with the code. Hope you'll help me.

#include "stdafx.h"
#include "ipp.h"
#pragma warning (disable:4996)

static unsigned int *pSeed;

extern "C"{

_declspec(dllexport) void nnlsbp_1D(double u[]);
}
_declspec(dllexport) void nnlsbp_1D(double u[]){

    ippsRandUniform_Direct_64f(u,91,0,1,pSeed);

}

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
115 Views

how about pSeed value?

 

Igor_A_Intel
Employee
115 Views

Hi Isaac,

first of all I reccomend you to use correct syntax while calling IPP - to use IppStatus and check it after a call - guess for this particular example you'll get     ippStsNullPtrErr            = -8,    /* Null pointer error. */ as pSeed pointer is not initialized...

regards, Igor

Reply