Quote:
|
Originally Posted by Ether
Quote:
Originally Posted by RyanCahoon
Using MATLAB 2012a on a Intel Core i7-3615QM
|
Ryan,
Could you edit your post to indicate what O/S you are using?
|
Windows 7 x64 Home Premium
Quote:
Originally Posted by Ether
Is it possible that the difference in timing is due to the differences in the memory access due to the data structures we used?
|
We're both using 8-byte floating point numbers. Assuming Pascal stores a multidimensional array in a contiguous memory block, we're basically using the same data structure - the only difference being that I'm only storing the elements below the diagonal and I believe you store all the elements of the matrix (at least, this is the way that I wrote the read/write code). Maybe this would affect caching.
For comparison, I compiled your code using Free Pascal and the Cholesky decomposition ran in 11.9 seconds on my computer.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor