Travis Oliphant wrote:
> I think I prefer to just add the float, bool, object, unicode, str names
> to the "non-imported" numpy
> name-space.
which mean you get it with:
import numpy as N
N.float
but not with
from numpy import *
?
If that's what you mean, then I'm all for it!
-Chris
--
Christopher Barker wrote:
> Travis Oliphant wrote:
>
>
>> Instead, I like better the idea of adding abs, round, max, and min to
>> the "non-import-*" namespace of numpy.
>>
>
> Another I'd like is the built-in data types. I always use:
>
> import numpy as N
>
> so then I do:
>
> a = zeros(
Travis Oliphant wrote:
> Instead, I like better the idea of adding abs, round, max, and min to
> the "non-import-*" namespace of numpy.
Another I'd like is the built-in data types. I always use:
import numpy as N
so then I do:
a = zeros(shape, float)
or
a = zeros(shape, N.float_)
but for non
Travis Oliphant wrote:
> Sebastian Haase wrote:
>> On Wednesday 23 August 2006 18:37, Travis Oliphant wrote:
>>
>>> David M. Cooke wrote:
>>>
On Wed, 23 Aug 2006 16:22:52 -0700
Sebastian Haase <[EMAIL PROTECTED]> wrote:
> On Wednesday 23 August 2006 16:12, Bil
Sebastian Haase wrote:
> On Wednesday 23 August 2006 18:37, Travis Oliphant wrote:
>
>> David M. Cooke wrote:
>>
>>> On Wed, 23 Aug 2006 16:22:52 -0700
>>>
>>> Sebastian Haase <[EMAIL PROTECTED]> wrote:
>>>
On Wednesday 23 August 2006 16:12, Bill Baxter wrote:
On Wednesday 23 August 2006 18:37, Travis Oliphant wrote:
> David M. Cooke wrote:
> > On Wed, 23 Aug 2006 16:22:52 -0700
> >
> > Sebastian Haase <[EMAIL PROTECTED]> wrote:
> >> On Wednesday 23 August 2006 16:12, Bill Baxter wrote:
> >>> The thing that I find I keep forgetting is that abs() is a bui
David M. Cooke wrote:
> On Wed, 23 Aug 2006 16:22:52 -0700
> Sebastian Haase <[EMAIL PROTECTED]> wrote:
>
>
>> On Wednesday 23 August 2006 16:12, Bill Baxter wrote:
>>
>>> The thing that I find I keep forgetting is that abs() is a built-in, but
>>> other simple functions are not. So it's a
On 8/23/06, Bill Baxter <[EMAIL PROTECTED]> wrote:
> The thing that I find I keep forgetting is that abs() is a built-in, but
> other simple functions are not. So it's abs(foo), but numpy.floor(foo) and
> numpy.ceil(foo). And then there's round() which is a built-in but can't be
> used with array
On Wed, 23 Aug 2006 16:22:52 -0700
Sebastian Haase <[EMAIL PROTECTED]> wrote:
> On Wednesday 23 August 2006 16:12, Bill Baxter wrote:
> > The thing that I find I keep forgetting is that abs() is a built-in, but
> > other simple functions are not. So it's abs(foo), but numpy.floor(foo)
> > and num
On Wednesday 23 August 2006 16:12, Bill Baxter wrote:
> The thing that I find I keep forgetting is that abs() is a built-in, but
> other simple functions are not. So it's abs(foo), but numpy.floor(foo) and
> numpy.ceil(foo). And then there's round() which is a built-in but can't be
> used with ar
The thing that I find I keep forgetting is that abs() is a built-in, but other simple functions are not. So it's abs(foo), but numpy.floor(foo) and numpy.ceil(foo). And then there's round() which is a built-in but can't be used with arrays, so
numpy.round_(foo). Seems like it would be more co
On Wed, 23 Aug 2006 13:51:02 -0700
Sebastian Haase <[EMAIL PROTECTED]> wrote:
> Hi!
> numpy renamed the *function* abs to absolute.
> Most functions like mean, min, max, average, ...
> have an equivalent array *method*.
>
> Why is absolute left out ?
> I think it should be added .
We've got __ab
Hi!
numpy renamed the *function* abs to absolute.
Most functions like mean, min, max, average, ...
have an equivalent array *method*.
Why is absolute left out ?
I think it should be added .
Furthermore, looking at some line of code that have multiple calls to
absolute [ like f(absolute(a), abso
Hi!
numpy renamed the *function* abs to absolute.
Most functions like mean, min, max, average, ...
have an equivalent array *method*.
Why is absolute left out ?
I think it should be added .
Furthermore, looking at some line of code that have multiple calls to
absolute [ like f(absolute(a), abso
14 matches
Mail list logo