[Rd] Strange behavior of C compiled program
cgenolin at u-paris10.fr
Sun Feb 8 23:37:24 CET 2009
Hi the list,
I need to include some C code in R, but the behavior of the C code is
strange : Here is my code :
--- 8< ---
Rprintf("\n XXXX mTraj=%f
tmp = mTraj[i+nbId* c] - mClustersCenter [j+nbClusters* c];
dist += (tmp * tmp);
--- 8< ----
Herer are the stranges results it gives :
XXXX mTraj=1.000000 mClus=3.000000
I ask on a C chat, but no one can answer me.
Any idea of what wrong ?
More information about the R-devel