Charles R Harris wrote:
On 9/6/06, *Charles R Harris* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
On 9/6/06, *Travis Oliphant* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Charles R Harris wrote:
Where is array at this point?
Charles R Harris wrote:
OK. I do have a couple of questions. Let me insert the docs for array
and asarray :
array(object, dtype=None, copy=1,order=None, subok=0,ndmin=0)
Return an array from object with the specified date-type.
1) Is it true that array doesn't always return a copy
Hi all, I've detected some small errors in the patches I sent some time
ago for adding Int64 and string support to numexpr (see
http://www.mail-archive.com/numpy-discussion%40lists.sourceforge.net/msg01551.html).
Basically:
* ``numpy.string`` was accessed instead of ``numpy.string_`` (looks like
Hi,
never mind that the following syntax is wrong, but is it supposed to
yield that SystemError instead of something more informative?
(This is with b5 on win32 and python 2.4.3)
b.reshape(3,3,axis = 1)
Traceback (most recent call last):
File interactive input, line 1, in ?
SystemError: NULL
On 9/7/06, Charles R Harris [EMAIL PROTECTED] wrote:
On 9/7/06, Travis Oliphant
[EMAIL PROTECTED] wrote:
Charles R Harris wrote: On 9/6/06, *Charles R Harris* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED]
wrote: On 9/6/06, *Travis Oliphant* [EMAIL PROTECTED]
mailto:
[EMAIL PROTECTED] wrote:
A long time ago, Travis wrote:
On a related, but orthogonal note:
My understanding is that using memory-mapped files for *very* large
files will require modification to the mmap module in Python ---
something I think we should push. One part of that process would be
to add the
What's the most straightforward way to count, say, the number of 1s or
Trues in the array? Or the number of any integer?
I was surprised to discover recently that there isn't a count() method
as there is for Python lists. Sorry if this has been discussed already,
but I'm wondering if there's a
On 9/7/06, Martin Spacek [EMAIL PROTECTED] wrote:
What's the most straightforward way to count, say, the number of 1s orTrues in the array? Or the number of any integer?
I was surprised to discover recently that there isn't a count() methodas there is for Python lists. Sorry if this has been
Martin Spacek wrote:
What's the most straightforward way to count, say, the number of 1s or
Trues in the array? Or the number of any integer?
I was surprised to discover recently that there isn't a count() method
as there is for Python lists. Sorry if this has been discussed already,
but
Hi Glen !
How is that quote really !?
The new Python2.5 *is* implementing the needed changes - so go ahead install
Python2.5 (rc1 is the latest I think) and report how it works.
I would also be very intersted to hear ;-)
-Sebastian Haase
On Thursday 07 September 2006 12:34, Glen W. Mabey
On 9/7/06, Martin Spacek [EMAIL PROTECTED] wrote:
What's the most straightforward way to count, say, the number of 1s or
Trues in the array? Or the number of any integer?
I was surprised to discover recently that there isn't a count() method
as there is for Python lists. Sorry if this has
On 9/7/06, Martin Spacek [EMAIL PROTECTED] wrote:
What's the most straightforward way to count, say, the number of 1s or
Trues in the array? Or the number of any integer?
I was surprised to discover recently that there isn't a count() method
as there is for Python lists. Sorry if this has
Great! That's exactly what I wanted. Works with floats too.
Thanks,
Martin
Robert Kern wrote:
Mostly, it's simply easy enough to implement yourself. Not all one-liners
should
be methods on the array object.
(a == value).sum()
On 9/7/06, Glen W. Mabey [EMAIL PROTECTED] wrote:
A long time ago, Travis wrote: My understanding is that using memory-mapped files for *very* largefiles will require modification to the mmap module in Python ---Did anyone ever pick up the ball on this issue?
This works with python-2.5 betas and
Charles R Harris wrote:
So is this intentional?
In [24]: a = array([[],[],[]], dtype=object)
In [25]: a.shape
Out[25]: (3, 0)
In [26]: a = array([], dtype=object)
In [27]: a.shape
Out[27]: (0,)
One could argue that the first array should have
Hi all,
It seems that scipy and numpy define rfft differently.
numpy returns n/2+1 complex numbers (so the first and last numbers are
actually real) with the frequencies equivalent to the positive part of
the fftfreq, whereas scipy returns n real numbers with the frequencies
as in rfftfreq
On 9/7/06, Travis Oliphant [EMAIL PROTECTED] wrote:
Charles R Harris wrote: So is this intentional? In [24]: a = array([[],[],[]], dtype=object) In [25]: a.shape Out[25]: (3, 0) In [26]: a = array([], dtype=object)
In [27]: a.shape Out[27]: (0,) One could argue that the first array should have
rex wrote:
Charles R Harris [EMAIL PROTECTED] [2006-09-07 15:04]:
I don't know about count, but you can gin up something like this
In [78]: a = ran.randint(0,2, size=(10,))
In [79]: a
Out[79]: array([0, 1, 0, 1, 1, 0, 0, 1, 1, 1])
This exposed inconsistent randint() behavior between
On 9/7/06, Andrew Jaffe [EMAIL PROTECTED] wrote:
Hi all,It seems that scipy and numpy define rfft differently.numpy returns n/2+1 complex numbers (so the first and last numbers areactually real) with the frequencies equivalent to the positive part of
the fftfreq, whereas scipy returns n real
Good afternoon,
Unfortunately, our recent change in internet service providers is not working
out. We will be switching to a more reliable provider on Tuesday 9/12 at 7:00
PM Central. Please allow for up to two hours of downtime. I will send an
email announcing the start and completion of this
Maybe I should stay out of this, but it seems like constructing object
arrays is complicated and involves a certain amount of guesswork on
the part of Numeric.
For example, if you do array([a,b,c]).shape(), the answer is normally
(3,) unless a b and c happen to all be lists of the same length, at
Hi Charles,
Charles R Harris wrote:
On 9/7/06, *Andrew Jaffe* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi all,
It seems that scipy and numpy define rfft differently.
numpy returns n/2+1 complex numbers (so the first and last numbers are
actually real) with
On 9/7/06, Andrew Jaffe [EMAIL PROTECTED] wrote:
Hi Charles,Charles R Harris wrote: On 9/7/06, *Andrew Jaffe* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote: Hi all, It seems that scipy and numpy define rfft differently. numpy returns n/2+1 complex numbers (so the first and last numbers are
rex wrote:
Robert Kern [EMAIL PROTECTED] [2006-09-07 16:35]:
rex wrote:
Charles R Harris [EMAIL PROTECTED] [2006-09-07 15:04]:
I don't know about count, but you can gin up something like this
In [78]: a = ran.randint(0,2, size=(10,))
In [79]: a
Out[79]: array([0, 1, 0, 1, 1, 0, 0, 1, 1,
24 matches
Mail list logo