I ran Aldo's program on my 366mhz intel thinkpad and got the following timings:
Code:
'Matrix Fill-up time = .691000000000582 ' 'Coded product Built-IN product ' 127.3s 286.6s ' ' 286.6 / 127.3 = 2.25 ' 'OK! 'Matrix Fill-up time = .721000000000386 ' 'Coded product Built-IN product ' 139.9s 295.8s ' ' 295.8 / 139.9 = 2.11 ' 'OK!
So I thought about benchmarking the Matrix Inverse function, which is probably the most calculation intensive function, and got the following result:
Code:
' 'Coded inverse Built-IN inverse ' 360.4s 1038.7s ' ' 1038.7 / 360.45 = 2.88 ' 'OK! '
I translated the FreeBasic function "gausjord" from the "fbmath" library.
Google on "fbmath" and download from the http://sourceforge.net/projects/fbmath/ site.
The source codes and exec are in the attached zip file.
Leave a comment: