Simple question - Numeric Python

Matthew Hirsch meh9 at cornell.edu
Thu Mar 9 11:27:21 EST 2000


Hi All,

I have a simple question about numeric python.

If I have the matrix:

1 2 3
4 5 6
7 8 9

How would you enter this?

Would it be:
1) array(((1,2,3),(4,5,6),(7,8,9)))  or
2) array(((1,4,7),(2,5,8),(3,6,9)))

In other words, are they entered as horizontal or vertical vectors?

Thanks for your help,
Matt



More information about the Python-list mailing list