Michael McNeil Forbes wrote:
> What are the semantics of the "take" function?
>
> I would have expected that the following have the same shape and size:
>
a = array([1,2,3])
inds = a.nonzero()
a[inds]
> array([1, 2, 3])
a.take(inds)
> array([[1, 2, 3]])
>
> Is there a bug som
What are the semantics of the "take" function?
I would have expected that the following have the same shape and size:
>>> a = array([1,2,3])
>>> inds = a.nonzero()
>>> a[inds]
array([1, 2, 3])
>>> a.take(inds)
array([[1, 2, 3]])
Is there a bug somewhere here or is this intentional?
Michael.
__
Den 3. des. 2006 kl. 18.23 skrev Steve Lianoglou:
>>> You got my hopes up for a second there, but I can do neither:
>>>
>>> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
>>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>>> Type "help", "copyright", "credits" or "license" for more
>>> i
>> You got my hopes up for a second there, but I can do neither:
>>
>> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>> Type "help", "copyright", "credits" or "license" for more
>> information.
> from numpy import *
>> Running from nu
On Friday 01 December 2006 17:56, Keith Goodman wrote:
...
> Would it break anything to change the first line of the nan functions from
> a = array(a)
> to
> a = asanyarray(a)
> ?
Seeing what the nan functions do, I don't think that would be a problem. An
expception would be raised if the operat
On 12/3/06, Arild B. Næss <[EMAIL PROTECTED]> wrote:
>
>
> Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux:
>
> On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote:
> This gets me further, actually the installation seems to complete.
> However, when I type
>
> import Numeric
> in Python,
Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux:
On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote:
This gets me further, actually the installation seems to complete.
However, when I type
import Numeric
in Python, I get the usual ImportError: No module named Numeric.
Thats norm
On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote:
> This gets me further, actually the installation seems to complete.
> However, when I type
> >> import Numeric
> in Python, I get the usual ImportError: No module named Numeric.
Thats normal, you installed numpy.
> >> import nump
Den 5. nov. 2006 kl. 20.26 skrev Steve Lianoglou:
>> I'm sorry, I was a tad too quick typing there. I meant to say "And do
>> I even need to [install Xcode] to run numpy?" Robert pointed out that
>> a lot things mentioned in the install guide were necessary to run
>> scipy, but that you could run