Reimplemented in Impala::Core::Matrix::DistributedAccess. Definition at line 176 of file VirtualMatrix.h. References GetDiagonalImpl(), ILOG_ERROR, NrCol(), and NrRow(). 00177 { 00178 if (NrRow() != NrCol()) 00179 { 00180 ILOG_ERROR("[GetDiagonal] Only works for square matrices!"); 00181 return 0; 00182 } 00183 if (bufferSize < NrCol()) 00184 { 00185 ILOG_ERROR("[GetDiagonal] Buffer too small"); 00186 return 0; 00187 } 00188 return GetDiagonalImpl(buffer, bufferSize); 00189 }
Here is the call graph for this function:
|