[Numpy-discussion] Definition of dot function
njs at pobox.com
Thu Mar 7 17:21:43 EST 2013
On 7 Mar 2013 20:27, "Henry Gomersall" <heng at cantab.net> wrote:
> On Thu, 2013-03-07 at 13:36 -0600, Mayank Daga wrote:
> > Can someone point me to the definition of dot() in the numpy source?
> > The only instance of 'def dot()' I found was in numpy/ma/extras.py but
> > that does not seem to be the correct one.
> It seems to be in a dynamic library.
> In : numpy.dot.__module__
> Out: 'numpy.core.multiarray'
> In : numpy.core.multiarray.__file__
> so... in here perhaps?
The actual entry point is array_matrixproduct in that file, which then
calls PyArray_MatrixProduct2, which either does the work or dispatches
through a dtype-specific function pointer ('dotfunc').
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion