[Numpy-tickets] [NumPy] #741: Extend numpy.dot() to accept more than 2 arrays.

NumPy numpy-tickets@scipy....
Thu Apr 17 14:27:41 CDT 2008


#741: Extend numpy.dot() to accept more than 2 arrays.
-------------------------+--------------------------------------------------
 Reporter:  joris        |        Owner:  somebody
     Type:  enhancement  |       Status:  new     
 Priority:  normal       |    Milestone:  1.2     
Component:  numpy.core   |      Version:  none    
 Severity:  normal       |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by rkern):

  * milestone:  1.0.5 => 1.2

Comment:

 This has been discussed before, and some implementations were experimented
 with. The main problem is that the associativity of the multiplications
 does matter if one is concerned about memory usage. Some intermediates are
 (much) bigger than others. However, the  syntax of {{{dot(a, b, c, d)}}}
 does not clearly show this association, and this will make things
 difficult for some users to identify the cause of the poor performance. If
 the implementation weren't a trivial one-liner, we might have included it
 with strong warnings. But since it is a trivial one-liner, we don't feel
 too bad telling people that want it to just do the one-liner in their own
 code.

 At least that's how I remember the conversation. I can't find the thread
 off-hand, though.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/741#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list