Note the following:
Code:
std::cout<<"X.colNo:"<<X2D.colNo<<" rowNo:"<<X2D.rowNo<<std::endl;
std::cout<<"D.colNo:"<<Dp.colNo<<" rowNo:"<<Dp.rowNo<<std::endl;
std::cout<<"neig.colNo:"<<Neig.colNo<<" rowNo:"<<Neig.rowNo<<std::endl;
distanceScalingOne(X2D, Dp, Neig, X2Df);
where
Code:
void distanceScalingOne(const MatrixRAM& X, const MatrixRAM& D, const MatrixRAM& myX, const MatrixRAM& neig) {
std::cout<<"X.colNo:"<<X.colNo<<" rowNo:"<<X.rowNo<<std::endl;
std::cout<<"D.colNo:"<<D.colNo<<" rowNo:"<<D.rowNo<<std::endl;
std::cout<<"neig.colNo:"<<neig.colNo<<" rowNo:"<<neig.rowNo<<std::endl;
}
and this is the output:
Code:
X.colNo:2 rowNo:62
D.colNo:6 rowNo:62
neig.colNo:6 rowNo:62
X.colNo:2 rowNo:62
D.colNo:6 rowNo:62
neig.colNo:140221259871064 rowNo:140221243990170
Any idea why this happens?