Definition at line 610 of file mainPrecomputeKernelMatrix.cpp. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(). Referenced by makeTestMatrix(). 00611 { 00612 int xbegin = (totalSize*column)/partCount; 00613 int xend = (totalSize*(column+1))/partCount; 00614 int ybegin = (totalSize*row)/partCount; 00615 int yend = (totalSize*(row+1))/partCount; 00616 Matrix::Mat* m = new Matrix::Mat(xend - xbegin, yend - ybegin, 0, 0); 00617 for(int y=ybegin ; y<yend ; ++y) 00618 { 00619 for(int x=xbegin ; x<xend ; ++x) 00620 *(m->CPB(x-xbegin,y-ybegin)) = (x+1.) / (y+1.); 00621 } 00622 return m; 00623 00624 }
Here is the call graph for this function:
|