Best form when using matrices and arrays in scipy...

conor.robinson at gmail.com conor.robinson at gmail.com
Wed May 10 19:38:21 EDT 2006


Using large arrays of data I found it is MUCH faster to cast arrays to
matricies and then multiply the two matricies togther
(scipy.matrix(ARRAY1)*scipy.matrix(ARRAY2)) in order to do a matrix
multipy of two arrays vs. scipy.matrixmultipy(ARRAY1, ARRAY2).

Are there any logical/efficiency errors with this train of thought and
is there a valid reason for the speed increase?

Thanks,
Conor




More information about the Python-list mailing list