Re: [Numpy-discussion] sum of two arrays with different shape?

2006-12-18 Thread zhang yunfeng
2006/12/18, Robert Kern <[EMAIL PROTECTED]>: zhang yunfeng wrote: > Hi, I'm newbie to Numpy. > > When reading tutorials at > http://www.scipy.org/Tentative_NumPy_Tutorial > <http://www.scipy.org/Tentative_NumPy_Tutorial>, I found a snippet about > addition

[Numpy-discussion] sum of two arrays with different shape?

2006-12-17 Thread zhang yunfeng
Hi, I'm newbie to Numpy. When reading tutorials at http://www.scipy.org/Tentative_NumPy_Tutorial, I found a snippet about addition of two arrays with different shape, Does it make sense? If array shapes are not same, why it doesn't throw out an error? see the code below (taken from the above web