ericjang / svd3

Fast singular value decomposition, diagonalization, QR decomposition of 3x3 matrices.
MIT License
149 stars 19 forks source link

running time is ms or s? #9

Open jingshaojing opened 2 years ago

jingshaojing commented 2 years ago

in main_cpu.cpp, printf("Average SVD takes %f microseconds \n ", 1e6*(double(end - start) / 1e6 / CLOCKS_PER_SEC ) ); , this is ms?

jingshaojing commented 2 years ago

double(end - start)/CLOCKS_PER_SEC is seconds.

jingshaojing commented 2 years ago

the time in main_cpu.cpp is calculte svd for 1e6 times. so the right time = time/1e6, rather than multile 1e6 another.

please give yuor comment.thanks