Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87777

Re: numpy array product driving me mad

Date 2015-03-20 14:14 +0100
From Manolo Martínez <manolo@austrohungaro.com>
Subject Re: numpy array product driving me mad
References <meh4s3$sd4$1@speranza.aioe.org> <20150320131145.GA23176@beagle>
Newsgroups comp.lang.python
Message-ID <mailman.39.1426857853.10327.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

numpy array product driving me mad "Mr. Twister" <mr@twister.com> - 2015-03-20 13:46 +0100
  Re: numpy array product driving me mad Manolo Martínez <manolo@austrohungaro.com> - 2015-03-20 14:11 +0100
  Re: numpy array product driving me mad Manolo Martínez <manolo@austrohungaro.com> - 2015-03-20 14:14 +0100
    Re: numpy array product driving me mad "Mr. Twister" <mr@twister.com> - 2015-03-20 14:42 +0100

csiph-web