Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class MatT>
void Impala::Core::Matrix::SetRow ( MatT *  m,
int  index,
const Vector::VectorTem< Real64 > &  row 
) [inline]

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:


Generated on Thu Jan 13 09:20:16 2011 for ImpalaSrc by  doxygen 1.5.1