Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78903
| References | <4fca2ff7-ad35-4514-b142-d4330c137fdb@googlegroups.com> <CANc-5UxGL1yM-Xn4FTwY_+YQhOKFYGkkUDExHCKXsxiEWZ8asA@mail.gmail.com> <CANZn9Ph8SMUpm3c67yMKxJ+fOOOCDs7aWd4pCXF0kbYCkaeA2A@mail.gmail.com> |
|---|---|
| Date | 2014-10-09 11:31 -0500 |
| Subject | Re: Numpy, uint64 and Big O notation. |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14723.1412872322.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
(For future reference, when responding to answers, it's worthwhile to continue to cc python-list.) On Thu, Oct 9, 2014 at 11:12 AM, Marcos Schratzenstaller < marksabbath@gmail.com> wrote: > The numpy has a function which manipulate 64 bits integers, but I couldn't > find a specific method to multiplicate this kind of objects can not be > manipulated as the same way, so if python is using the correct function > (assuning python is detecting the object, calling the correct function) it > is not a problem, but, where can I find this deep information? Marcos, Yes, the builtin help() function serves as reasonable documentation in this case: >>> help(numpy.int64) Help on class int64 in module numpy: class int64(signedinteger, __builtin__.int) | 64-bit integer. Character code 'l'. Python int compatible. | | Method resolution order: | int64 | signedinteger | integer | number | generic | __builtin__.int | __builtin__.object | | Methods defined here: ... | Methods inherited from generic: | | __abs__(...) | x.__abs__() <==> abs(x) | | __add__(...) | x.__add__(y) <==> x+y ... | __mod__(...) | x.__mod__(y) <==> x%y | | __mul__(...) | x.__mul__(y) <==> x*y ... The __mul__ method implements multiplication. I don't know the specific implementation in numpy, but it's probably little more than a thin wrapper around x * y (with perhaps some type and overflow checking). Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Numpy, uint64 and Big O notation. marksabbath@gmail.com - 2014-10-09 06:08 -0700 Re: Numpy, uint64 and Big O notation. Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-09 10:39 -0500 Re: Numpy, uint64 and Big O notation. Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-09 11:31 -0500
csiph-web