¡@

Home 

c++ Programming Glossary: matsize

Why is transposing a matrix of 512x512 much slower than transposing a matrix of 513x513?

http://stackoverflow.com/questions/11413855/why-is-transposing-a-matrix-of-512x512-much-slower-than-transposing-a-matrix-of

difference. Follows the code #define SAMPLES 1000 #define MATSIZE 512 #include time.h #include iostream int mat MATSIZE MATSIZE.. MATSIZE 512 #include time.h #include iostream int mat MATSIZE MATSIZE void transpose for int i 0 i MATSIZE i for int j 0 j.. 512 #include time.h #include iostream int mat MATSIZE MATSIZE void transpose for int i 0 i MATSIZE i for int j 0 j MATSIZE..