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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to