Reimplemented from Impala::Core::Training::TrainDataSrc. Definition at line 74 of file TrainDataSrcKernelDistributed.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Matrix::DistributedAccess::GetColumn(), Impala::Core::Matrix::DistributedAccess::GetColumns(), Impala::Core::Matrix::DistributedAccess::GetRows(), ILOG_WARNING, Impala::Core::Matrix::MatTranspose(), and mDA. 00075 { 00076 if(maxCol == -1 || maxCol > mDA->GetColumns()) 00077 maxCol = mDA->GetColumns(); 00078 if(maxRow == -1 || maxRow > mDA->GetRows()) 00079 maxRow = mDA->GetRows(); 00080 Matrix::Mat* m = new Matrix::Mat(maxCol, maxRow, 0, 0); 00081 for(int x=0 ; x<maxCol ; ++x) 00082 { 00083 int received = mDA->GetColumn(x, m->CPB(0,x), maxRow); // so we put a column in a row 00084 if(received != maxRow) 00085 { 00086 ILOG_WARNING("received " << received << " values i.s.o. " << maxRow); 00087 } 00088 } 00089 Matrix::MatTranspose(m); 00090 return m; 00091 }
Here is the call graph for this function:
|