dot/inner with kwargs?

Aug. 6, 2008
3:47 p.m.
Hi, I am trying to do something like the following as efficiently as possible: result[...,0] = (dat * cos(arange(100))).sum(axis = -1) result[...,1] = (dat * sin(arange(100))).sum(axis = -1) Thus, I was looking for dot / inner with an 'output' arg. Q1: What is the difference between dot and inner (apart from the fact that dot does not seem to have docs)? In http://www.scipy.org/Numpy_Example_List_With_Doc#inner, I read that:
Like the generic NumPy equivalent the product sum is over the last dimension of a and b. (BTW: "innerproduct" should be "inner")
Q2: What is "the generic NumPy equivalent" here? -- Ciao, / / /--/ / / ANS
6042
Age (days ago)
6042
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hans Meine