On 2009-07-29 15:23, Nanime Puloski wrote:
What are some differences between arrays and matrices using the Numpy
library? When would I want to use arrays instead of matrices and vice
versa?

You will want to ask numpy questions on the numpy mailing list:

  http://www.scipy.org/Mailing_Lists

An overview of how the matrix subclass differs from ndarray, see the 
documentation:

  http://docs.scipy.org/doc/numpy/reference/arrays.classes.html#matrix-objects

Basically, I suggest that you just use regular arrays always. There is a syntactical convenience to matrix objects, but it does cause incompatibilities with the majority of code that is written for regular arrays. The convenience is usually not worth the cost.

--
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

Reply via email to