template<class MatT>
Definition at line 17 of file SetRow.h. References ILOG_VAR, MatE(), MatNrCol(), MatNrRow(), and Impala::Core::Vector::VectorTem< ElemT >::Size(). Referenced by Impala::Core::Training::FikSvm::GetH(). 00018 { 00019 ILOG_VAR(Impala.Core.Matrix.SetRow); 00020 int length = MatNrCol(m); 00021 if (length != row.Size()) 00022 ILOG_ERROR_NODE("nonconformant operands"); 00023 if (index < 0 || index >= MatNrRow(m)) 00024 ILOG_ERROR_NODE("faulty row index: " << index); 00025 typename MatT::StorType* rowPtr = MatE(m, index); 00026 for (int i=0 ; i<length ; i++) 00027 rowPtr[i] = row[i]; 00028 }
Here is the call graph for this function:
|