3 Oct 18:36
Array shape
From: Kelly Vincent <kpvincent <at> hotmail.com>
Subject: Array shape
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-03 16:39:39 GMT
Subject: Array shape
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-03 16:39:39 GMT
I'm using Numpy to do some basic array manipulation, and I'm getting some unexpected behavior from shape. Specifically, I have some 3x3 and 2x2 matrices, and shape gives me (5, 3) and (3, 2) for their respective sizes. I was expecting (3, 3) and (2, 2), for number of rows, number of columns. I'm assuming I must either be misunderstanding what shape gives you or doing something wrong. Can anybody give me any advice? I'm using Python 2.5 and Numpy 1.1.0.
Thanks,
Kelly
Thanks,
Kelly
_______________________________________________ Numpy-discussion mailing list Numpy-discussion <at> scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
RSS Feed