numpy array product driving me mad

Manolo Martínez manolo at austrohungaro.com
Fri Mar 20 09:14:11 EDT 2015


On 03/20/15 at 02:11pm, Manolo Martínez wrote:
> On 03/20/15 at 01:46pm, Mr. Twister wrote:
>  
> > I have two numpy arrays:

[...] 

> > Is there a direct, single expression command to get this result? 
> 
> I think that you want 
> 
>     P * R[;,None]

Sorry, I meant 

    P * R[:, None]

Manolo



More information about the Python-list mailing list