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

conor.robinson at gmail.com conor.robinson at gmail.com
Thu May 11 01:38:21 CEST 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