
30 Nov
2007
30 Nov
'07
6:33 p.m.
On Nov 30, 2007, at 12:05 PM, nisha kannookadan wrote:
I changed now the code to something runnable and have it also in matlab, u will see, its way slower in C++.
[snip]
#define DNDEBUG
As Justin told you earlier, the line above should be: #define NDEBUG to eliminate the overhead of bounds-checking, etc. On the compiler command-line, it is "-DNDEBUG", which is the concatenation of the "-D" option, meaning to define a preprocessor symbol, and "NDEBUG", the literal symbol. Regards, -Steve -- Steve Byan Steve.Byan@netapp.com