Regarding my last post:
I call ppuval very often in an optimization. If I write 'clear mex' at the end of one complete optimization run, the mexfile is cleared from memory but the memory is not released. Writing 'clear mex' after each call to the mexfile slows down the computation considerably. How to clear the memory without slowing down the computation? Thank you.
It works fine (almost), but I have a problem with memory. It seems that the memory allocated by ppuval is not freed afterwards. This leads to an increasing Matlab memory demand which finally gives me an 'Out of Memory' error for often repeated evaluations. I'm using Matlab 2011b 32 bit with Windows 7 64 bit.
Do you have any hint how to fix this? Thank you.
@ Travis Storm: I think you miss some header files. If you download Visual C++ 2010 Express, they should be included though.
Love the idea, but I get the following error when I try to run installer:
interpUtil.cpp(3) : fatal error C1083: Cannot open include file: 'ppl.h': No such file or directory
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Compile of 'interpUtil.cpp' failed.
??? Error using ==> mex at 222
Unable to complete successfully.
Error in ==> installer at 5
mex interpUtil.cpp -c
Is a header file missing?