13 Sep
2010
13 Sep
'10
8:33 a.m.
Example
/***********begin**************/
void testMatrixRow()
{
matrix<double> m(1920, 1080);
clock_t begin,end;
begin = clock();
for(unsigned int i = 0; i < m.size1(); ++i)
for(unsigned int j = 0; j < m.size2(); j++)
{
m.insert_element(i, j, i*3 + j);
}
end = clock();
cout<<"time of inserting data : "<<(double)(end-begin)/CLOCKS_PER_SEC<<"
"<