X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Oct 2014 05:14 AM by  anon
matrix multiply of idl is very slow compared to Python.
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
06 Oct 2014 05:14 AM
    hi. here is example code. my english is poor. sorry. data = RANDOMU(seed, 2e3, 2e3, /double) ; using idl matrix multiply tmp = tic() res_idl = data##data idl_time = toc(tmp) ; using python ; www.slither4idl.com py = pyimport('__main__') py.EXEC, 'from numpy import dot' tmp = tic() res_py = py.DOT(data, data) py_time = toc(tmp) ; 8 times faster in my computer PRINT, 'idl elapsed time', idl_time PRINT, 'python elapsed time', py_time PRINT, ' ' PRINT,'result difference between idl and python', MAX(res_idl - res_py, /abs) ; same result My computer, eight times faster about Python. Is there a plan to increase the matrix calculation speed? thanks
    You are not authorized to post a reply.