- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a C++ program that produces random numbers from various distributions. I am using multiple generators: vdRngGaussian, vdRngUniform, etc. The one generator that throws an error upon compilation is the vdRngChiSquare generator.
Here is the error:
main.cpp(31): error: identifier "VSL_RNG_METHOD_CHISQUARE_CHI2GAMMA" is undefined
vdRngChiSquare(VSL_RNG_METHOD_CHISQUARE_CHI2GAMMA, stream, 1, &r, nu);
main.cpp(31): error: identifier "vdRngChiSquare" is undefined
vdRngChiSquare(VSL_RNG_METHOD_CHISQUARE_CHI2GAMMA, stream, 1, &r, nu);
I don't see a syntax error in my call to the generator. Any ideas what might be going on here?
Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The symbolic constant in question is declared in mkl_vsl_defines.h . Did you #include this file, either directly or through one of the other mkl_vsl*.h files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#include "mkl_vsl.h"
You may check the vdrngchisquare.c example ( mklroot\vslc\source\ ) .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you both for your responses. It turns out I am using an outdated version of MKL, and that is why I do not have access to the Chi Square RNG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are welcome to contact us with any further questions.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page