Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25312
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | invis <invis87@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: from octave to python |
| Date | Sat, 14 Jul 2012 06:17:45 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 21 |
| Message-ID | <6fb74b9d-e1ca-4aa8-bd48-dea7f54ff2bb@googlegroups.com> (permalink) |
| References | <403486d4-6afc-4da6-aadc-7b2a0d4270d0@googlegroups.com> |
| NNTP-Posting-Host | 79.111.38.8 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1342271865 18389 127.0.0.1 (14 Jul 2012 13:17:45 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Sat, 14 Jul 2012 13:17:45 +0000 (UTC) |
| In-Reply-To | <403486d4-6afc-4da6-aadc-7b2a0d4270d0@googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=79.111.38.8; posting-account=HLVedgoAAABXullESd3WEDFiAQJWBQqB |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.python:25312 |
Show key headers only | View raw
суббота, 14 июля 2012 г., 15:27:24 UTC+4 пользователь invis написал: > Hello everyone ! > > I used Octave for matrix computations, but looks like Python will be useful everywhere so it is good idea to migrate (imho ofc). > > But I am novice here and dont know how to get things that was easy in Octave, for example: > [intersect iA iB] = intersect(a, b) > > To do this in Python I use numpy.intersect1d(numpy.array, numpy.array), but how to get indexces ? > > P.S. sry for my english, hope you can understand what I mean :) Answer here: http://stackoverflow.com/questions/11483863/python-intersection-indices-numpy-array
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
from octave to python invis <invis87@gmail.com> - 2012-07-14 04:27 -0700 Re: from octave to python invis <invis87@gmail.com> - 2012-07-14 06:17 -0700
csiph-web