template<class MatT>
Definition at line 32 of file SetRow.h. References ILOG_VAR, MatE(), MatNrCol(), and MatNrRow(). Referenced by Impala::Core::Training::FikSvm::ImportSvm(). 00033 { 00034 ILOG_VAR(Impala.Core.Matrix.SetRow); 00035 int length = MatNrCol(dst); 00036 if (length != MatNrCol(src)) 00037 ILOG_ERROR_NODE("nonconformant operands"); 00038 if (dstIndex < 0 || dstIndex >= MatNrRow(dst)) 00039 ILOG_ERROR_NODE("faulty row dstIndex: " << dstIndex); 00040 if (srcIndex < 0 || srcIndex >= MatNrRow(src)) 00041 ILOG_ERROR_NODE("faulty row srcIndex: " << srcIndex); 00042 typename MatT::StorType* dstRowPtr = MatE(dst, dstIndex); 00043 typename MatT::StorType* srcRowPtr = MatE(src, srcIndex); 00044 for (int i=0 ; i<length ; i++) 00045 dstRowPtr[i] = srcRowPtr[i]; 00046 }
Here is the call graph for this function:
|