Thanks Warren, I think these are sensible additions.
I would argue to treat the None-False condition as an error. Indeed I agree
one might argue the correcr behavior is to 'shuffle' the singleton block of
data, which does nothing; but its more likely to come up as an unintended
error than as a
On Sun, Oct 12, 2014 at 3:51 PM, Eelco Hoogendoorn
hoogendoorn.ee...@gmail.com wrote:
I would argue to treat the None-False condition as an error. Indeed I agree
one might argue the correcr behavior is to 'shuffle' the singleton block of
data, which does nothing; but its more likely to come up
Hi Warren
On 2014-10-12 00:51:56, Warren Weckesser warren.weckes...@gmail.com wrote:
A small wart in this API is the meaning of
shuffle(a, independent=False, axis=None)
It could be argued that the correct behavior is to leave the
array unchanged.
I like the suggested changes. Since
yeah, a shuffle function that does not shuffle indeed seems like a major
source of bugs to me.
Indeed one could argue that setting axis=None should suffice to give a
clear enough declaration of intent; though I wouldn't mind typing the extra
bit to ensure consistent semantics.
On Sun, Oct 12,
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
A small wart in this API is the meaning of
shuffle(a, independent=False, axis=None)
It could be argued that the correct behavior is to leave the
array unchanged. (The current behavior can be interpreted
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern robert.k...@gmail.com wrote:
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
A small wart in this API is the meaning of
shuffle(a, independent=False, axis=None)
It could be argued that the correct
On Sun, Oct 12, 2014 at 10:54 AM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern robert.k...@gmail.com wrote:
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
A small wart in this API is the meaning of
On Sun, Oct 12, 2014 at 11:20 AM, josef.p...@gmail.com wrote:
On Sun, Oct 12, 2014 at 10:54 AM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern robert.k...@gmail.com
wrote:
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
On Sun, Oct 12, 2014 at 11:33 AM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sun, Oct 12, 2014 at 11:20 AM, josef.p...@gmail.com wrote:
On Sun, Oct 12, 2014 at 10:54 AM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern
On Sat, Oct 11, 2014 at 6:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
I created an issue on github for an enhancement
to numpy.random.shuffle:
https://github.com/numpy/numpy/issues/5173
I'd like to get some feedback on the idea.
Currently, `shuffle` shuffles the first
On 2014-10-12 16:54, Warren Weckesser wrote:
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern robert.k...@gmail.com
mailto:robert.k...@gmail.com wrote:
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
warren.weckes...@gmail.com mailto:warren.weckes...@gmail.com
wrote:
A
On Sun, Oct 12, 2014 at 12:14 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sat, Oct 11, 2014 at 6:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
I created an issue on github for an enhancement
to numpy.random.shuffle:
https://github.com/numpy/numpy/issues/5173
On Sun, Oct 12, 2014 at 12:14 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sat, Oct 11, 2014 at 6:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
I created an issue on github for an enhancement
to numpy.random.shuffle:
==
Announcing bcolz 0.7.2
==
What's new
==
This is a maintenance release that fixes various bits and pieces.
Importantly, compatibility with Numpy 1.9 and Cython 0.21 has been fixed
and the test suit no longer segfaults on 32 bit UNIX.
Hi,
In part of my C++ code, I often do
void foo(PyObject * matrix) {
do stuff
}
where matrix is a numpy mxn matrix created on the Python side, where
foo() eg. is invoked as
a = numpy.array([[1,2],[3,5]])
foo(a)
However, if you call transpose() on a, some care should be taken, since
On Sun, Oct 12, 2014 at 9:29 AM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sun, Oct 12, 2014 at 12:14 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
On Sat, Oct 11, 2014 at 6:51 PM, Warren Weckesser
warren.weckes...@gmail.com wrote:
I created an issue on github
12.10.2014, 20:19, Mads Ipsen kirjoitti:
Is there any way for me to detect (on the Python side) that transpose()
has been invoked on the matrix, and thereby only do the copy operation
when it really is needed?
The correct way to do this is to, either:
In your C code check
On 2014/10/12, 8:29 AM, Pauli Virtanen wrote:
12.10.2014, 20:19, Mads Ipsen kirjoitti:
Is there any way for me to detect (on the Python side) that transpose()
has been invoked on the matrix, and thereby only do the copy operation
when it really is needed?
The correct way to do this is to,
On Sun, Oct 12, 2014 at 10:56 AM, Jaime Fernández del Río
jaime.f...@gmail.com wrote:
Just to add some noise to a productive conversation: if you add a 'copy'
flag to shuffle, then all the functionality is in one place, and
'permutation' can either be deprecated, or trivially implemented in
12.10.2014, 22:16, Eric Firing kirjoitti:
On 2014/10/12, 8:29 AM, Pauli Virtanen wrote:
12.10.2014, 20:19, Mads Ipsen kirjoitti:
Is there any way for me to detect (on the Python side) that transpose()
has been invoked on the matrix, and thereby only do the copy operation
when it really is
On Mon, Oct 13, 2014 at 12:07 AM, Pauli Virtanen p...@iki.fi wrote:
12.10.2014, 22:16, Eric Firing kirjoitti:
On 2014/10/12, 8:29 AM, Pauli Virtanen wrote:
12.10.2014, 20:19, Mads Ipsen kirjoitti:
Is there any way for me to detect (on the Python side) that transpose()
has been invoked on the
Guys, any advice is highly appreciated. I am a little new to building in
Linux.
Thanks,
Lahiru
On Sat, Oct 11, 2014 at 9:43 AM, Lahiru Samarakoon lahir...@gmail.com
wrote:
I switched to numpy-1.8.2. . Now getting following error. I am using
LAPACK that comes with atlast installation. Can this
On Sun, Oct 12, 2014 at 5:14 PM, Sebastian se...@sebix.at wrote:
On 2014-10-12 16:54, Warren Weckesser wrote:
On Sun, Oct 12, 2014 at 7:57 AM, Robert Kern robert.k...@gmail.com
mailto:robert.k...@gmail.com wrote:
On Sat, Oct 11, 2014 at 11:51 PM, Warren Weckesser
23 matches
Mail list logo