template<class F>
void setvalue NumMat< F > &  M,

set all of the entries of a NumMat M's _data to a value val. For example, can set all of a matrix to zero

Definition at line 126 of file nummat.hpp.

References NumMat< F >::m(), and NumMat< F >::n().

00127 {
00128   for(int i=0; i<M.m(); i++)
00129          for(int j=0; j<M.n(); j++)
00130                 M(i,j) = val;
00131 }

Generated on Sun Dec 4 18:13:13 2005 for common by  doxygen 1.4.5