segmentation fault in scipy?

Robert Kern robert.kern at gmail.com
Thu May 11 21:19:48 CEST 2006


conor.robinson at gmail.com 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




More information about the Python-list mailing list