Hi all,
I got a problem while using data fitting module in MKL (I am using version 11.3.0 Build 20150730), here is the sample code.
#include <iostream> #ifdef __cplusplus extern "C" { #endif // sample function int sample_dfslinearspline(); #ifdef __cplusplus } #endif int main() { std::cout << "hello!"<< std::endl; return sample_dfslinearspline(); }
And the function sample_dfslinearspline is same with main function in MKL's example file %MKLROOT%\examples\datafittingc\source\dfslinearspline.c.
While run this code, I got a ERROR result :
Integration results for Y1 :
Integration interval Result
( -1.5, +0.5 ) -64372931560441346000000000000000000.000000
( -1.0, +1.0 ) +0.000000
( -0.5, +1.5 ) -67739524352558409000000000000000000.000000
Integration results for Y2 :
Integration interval Result
( -1.5, +0.5 ) +0.000000
( -1.0, +1.0 ) -67739524352558409000000000000000000.000000
( -0.5, +1.5 ) +0.000000
If I remove the first output line :
std::cout << "hello!"<< std::endl;
Then the result is correct.
Next, I check the example code, and add a CheckErrorCode line after call dfsIntegrate1D, just like :
/***** Compute integrals *****/
errcode = dfsIntegrate1D( task, DF_METHOD_PP, nlim, llim, llimhint,
rlim, rlimhint, ldatahint, rdatahint,
r, rhint );
CheckDfError(errcode);
Now, it report an error after call dfsIntegrate1D:
Error: invalid flag defining structure of spline based integration results (code -1034).
Is it a bug? My project is generate from Qt Creator.