Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9307
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python bug? Indexing to matrices |
| References | <394aae4f-92ac-406e-bd44-2d2bd3debd91@l1g2000yql.googlegroups.com> |
| Date | 2011-07-12 15:59 +1000 |
| Message-ID | <87sjqcdoo0.fsf@benfinney.id.au> (permalink) |
| Organization | Unlimited download news at news.astraweb.com |
David <davidbtdt@gmail.com> writes: > Should the following line work for defining a matrix with zeros? > > c= [[0]*col]*row No. Python lists are not matrixes and are not arrays. If you want good implementations of arrays and matrices, use NumPy <URL:http://numpy.scipy.org/>. -- \ “Properly read, the Bible is the most potent force for atheism | `\ ever conceived.” —Isaac Asimov | _o__) | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python bug? Indexing to matrices David <davidbtdt@gmail.com> - 2011-07-11 22:39 -0700
Re: Python bug? Indexing to matrices Chris Rebert <clp2@rebertia.com> - 2011-07-11 22:44 -0700
Re: Python bug? Indexing to matrices Ben Finney <ben+python@benfinney.id.au> - 2011-07-12 15:59 +1000
Re: Python bug? Indexing to matrices sturlamolden <sturlamolden@yahoo.no> - 2011-07-12 05:59 -0700
Re: Python bug? Indexing to matrices sturlamolden <sturlamolden@yahoo.no> - 2011-07-12 06:03 -0700
Re: Python bug? Indexing to matrices David <davidbtdt@gmail.com> - 2011-07-12 06:23 -0700
csiph-web