[EMAIL PROTECTED] wrote: > This is great advise and much appreciated. It was the answer to my > problem, thank you. However, isn't this faster... > scipy.sum(scipy.array(scipy.matrix(error)*scipy.matrix(error)), axis = > None) > as we you explained in my other posting?
No! matrix objects use matrix multiplication for *. You seem to need elementwise multiplication. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list