how could I output the data of matrix(ublas) to txt file faster?
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<<"
"<
5190
Age (days ago)
5190
Last active (days ago)
0 comments
1 participants
participants (1)
-
Samurai Deeper