[SciPy-user] unexpected matrix behavior
Alan G Isaac
aisaac at american.edu
Fri Dec 16 02:54:59 EST 2005
On Thu, 15 Dec 2005, Travis Oliphant apparently wrote:
> when you slice a matrix you get a matrix.
> Thus, the essential difference is that
> z[0] is another two-dimensional object
Aha!
I suggest adding this as another example in
section 7.3, second item:
2. Matrix objects are always two-dimensional. This
has far-reaching implications, in that m.ravel()
is still two-dimensional (with a 1 in the first
dimension), and item selection returns
two-dimensional arrays.
Yes I see now that the explanation is there ...
Thanks!
Alan
More information about the SciPy-User
mailing list