First, I found some coding like this:
Code:
int current01;
current01 = !current01
what does !current01 mean? What will the value of !current01 be?
Here is another weird code:
Code:
#if MKL_PIVOT
_rowpivot[k] = _rowpivot[maxrow];
#else
std::swap(_rowpivot[k], _rowpivot[maxrow]);
#endif
SwapCols(rXmin + halfDeltaX,float(maxrow+.5f));
Why '#' is added befor if,else, endif? What is the aim doing that?
(MKL_PIVOT is enum)
Is that just the same as:
Code:
if (MKL_PIVOT)
_rowpivot[k] = _rowpivot[maxrow];
else
std::swap(_rowpivot[k], _rowpivot[maxrow]);
SwapCols(rXmin + halfDeltaX,float(maxrow+.5f));
which SwapCols(rXmin + halfDeltaX,float(maxrow+.5f)); will still run anyway?