Re: [Numpy-discussion] broadcasting question

2012-08-30 Thread Robert Kern
,:], numpy.empty([1,state,1])) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.distutils, lapack, and cython

2012-09-28 Thread Robert Kern
way to build Cython files than this weird monkey-patching thing they propose? (It's still better than the horror that setuptools/distribute require, but I guess I have higher expectations...) Sadly, probably not. numpy.distutils is not much less horrifying than setuptools. -- Robert Kern

Re: [Numpy-discussion] distutils C++ Fortran

2012-10-16 Thread Robert Kern
to specific compiler versions. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] matrix norm

2012-10-22 Thread Robert Kern
. The trail leads to here: http://projects.scipy.org/numpy/attachment/ticket/36/numpy-6-norm-change- default.diff Seems like the chances of learning the reason why this change was done are pretty slim. http://mail.scipy.org/pipermail/numpy-discussion/2006-March/019194.html -- Robert Kern

Re: [Numpy-discussion] numpy.power vs pylab.power

2012-11-15 Thread Robert Kern
it make sense if pylab.power were the frequently used power function rather than a means for sampling from the power distribution? Matplotlib may be discussed over here: https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Robert Kern

Re: [Numpy-discussion] install numpy 1.6.2 .dmg on macosx 10.7, check for python 2.7

2012-11-29 Thread Robert Kern
it gets installed. Then the numpy-1.6.2-py2.7-python.org-macosx10.3.dmg will recognize it. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] np.seterr doesn't work for masked array?

2012-12-14 Thread Robert Kern
of the masked values will be trip these errors spuriously even though they will be masked out in the result. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] np.seterr doesn't work for masked array?

2012-12-14 Thread Robert Kern
the error setting. Precisely. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-13 Thread Robert Kern
is to let the ndarray.fill() method return self: a = np.empty(...).fill(20.0) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-13 Thread Robert Kern
On Mon, Jan 14, 2013 at 1:04 AM, Nathaniel Smith n...@pobox.com wrote: On Sun, Jan 13, 2013 at 11:48 PM, Skipper Seabold jsseab...@gmail.com wrote: On Sun, Jan 13, 2013 at 6:39 PM, Nathaniel Smith n...@pobox.com wrote: On Sun, Jan 13, 2013 at 11:24 PM, Robert Kern robert.k...@gmail.com wrote

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-14 Thread Robert Kern
of the multiplication will be different, so fill can not be used. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] argsort

2013-01-15 Thread Robert Kern
/user/basics.indexing.html#indexing-multi-dimensional-arrays -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] argsort

2013-01-16 Thread Robert Kern
, 12], [ 7, 23], [ 6, 11], [ 8, 9]]) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] another little index puzzle

2013-01-21 Thread Robert Kern
and last row. all_equal_mask = np.logical_and.reduce(arr[:,1:] == arr[:,:-1], axis=1) some_unequal = arr[~all_equal_mask] -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Matrix Expontial for differenr t.

2013-01-28 Thread Robert Kern
= np.linalg.solve(v, y0) for i, t in enumerate(tlist): # And no need to dot() the first part. Broadcasting works just fine. sol_t = (v * np.exp(-w*t)).dot(viy0) ... -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] pull request: generalized ufunc signature fix and lineal algebra generalized ufuncs

2013-01-31 Thread Robert Kern
in. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Any plans for windows 64-bit installer for 1.7?

2013-02-04 Thread Robert Kern
-- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] savez documentation flaw

2013-02-05 Thread Robert Kern
link on the left. Follow the instructions on the front page of the numpy Docstring Editor site to sign up: http://docs.scipy.org/numpy/Front%20Page/ -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] How to upload to pypi

2013-02-12 Thread Robert Kern
with PyPI on Catalog-SIG: http://mail.python.org/mailman/listinfo/catalog-sig -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Purpose of this list

2013-02-15 Thread Robert Kern
-discussion is for both development discussions and support questions. The set of people interested in the developer discussions is mostly the same as the set of people giving support, so there has never been too much impetus for breaking the list into two halves. -- Robert Kern

Re: [Numpy-discussion] savetxt trouble

2013-02-20 Thread Robert Kern
expecting? A single row? savetxt() always writes out len(arr) rows. Reshape your vector into a (1,N) array if you want a single row. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Seeking help and support for next-gen math modeling tools using Python

2013-02-20 Thread Robert Kern
://sourceforge.net/projects/numpy/files/ Is there some misleading documentation still around that gave you a different impression? Todd is responding to a message about PyDSTool, which is developed on Sourceforge, not numpy. -- Robert Kern ___ NumPy-Discussion

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-23 Thread Robert Kern
a.abs(), and why this function and not other unary functions? Or even abs(a). -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-26 Thread Robert Kern
On Tue, Feb 26, 2013 at 12:11 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t

Re: [Numpy-discussion] Remove interactive setup

2013-03-05 Thread Robert Kern
] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: no commands supplied Anyone who was expecting the interactive setup will probably complain here. -- Robert Kern

Re: [Numpy-discussion] Numpy deprecation schedule

2013-03-06 Thread Robert Kern
On Wed, Mar 6, 2013 at 10:45 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Mar 6, 2013 at 10:33 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Mar 6, 2013 at 8:09 PM, Nathaniel Smith n...@pobox.com wrote: A number of items on the 1.8 todo list are reminders to remove things that we

Re: [Numpy-discussion] Numpy deprecation schedule

2013-03-06 Thread Robert Kern
On Wed, Mar 6, 2013 at 10:56 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Mar 6, 2013 at 10:53 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Mar 6, 2013 at 10:45 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Mar 6, 2013 at 10:33 PM, Robert Kern robert.k...@gmail.com wrote

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-11 Thread Robert Kern
exposed `set_state()` in the module API. It's an attractive nuisance. There is some low-level C work that needs to be done to allow the non-uniform distributions to be shared between implementations of the core uniform PRNG, but that's the same no matter how you organize the upper layer. -- Robert

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Robert Kern
On Tue, Mar 12, 2013 at 10:38 PM, Neal Becker ndbeck...@gmail.com wrote: Nathaniel Smith wrote: On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern robert.k...@gmail.com wrote: On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam s

Re: [Numpy-discussion] can't run cython on mtrand.pyx

2013-03-13 Thread Robert Kern
. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] can't run cython on mtrand.pyx

2013-03-14 Thread Robert Kern
On Wed, Mar 13, 2013 at 7:20 PM, Neal Becker ndbeck...@gmail.com wrote: Robert Kern wrote: On Wed, Mar 13, 2013 at 6:40 PM, Neal Becker ndbeck...@gmail.com wrote: Grabbed numpy-1.7.0 source. Cython is 0.18 cython mtrand.pyx produces lots of errors. It helps to copy-and-paste the errors

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Robert Kern
into a struct and export a pointer to it via a PyCapsule. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Robert Kern
On Thu, Mar 14, 2013 at 11:00 AM, Neal Becker ndbeck...@gmail.com wrote: Robert Kern wrote: On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker ndbeck...@gmail.com wrote: I guess I talked to you about 100 years ago about sharing state between numpy rng and code I have in c++ that wraps boost

Re: [Numpy-discussion] OpenOpt Suite release 0.45

2013-03-16 Thread Robert Kern
to be used in the code snippet that Dmitrey showed. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] OpenOpt Suite release 0.45

2013-03-16 Thread Robert Kern
On Sat, Mar 16, 2013 at 6:19 PM, Dmitrey tm...@ukr.net wrote: --- Исходное сообщение --- От кого: Robert Kern robert.k...@gmail.com Дата: 16 марта 2013, 19:54:51 On Sat, Mar 16, 2013 at 10:39 AM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Even if they have different hashes

Re: [Numpy-discussion] OpenOpt Suite release 0.45

2013-04-09 Thread Robert Kern
On Tue, Apr 9, 2013 at 4:15 PM, Dmitrey tm...@ukr.net wrote: --- Исходное сообщение --- От кого: Robert Kern robert.k...@gmail.com Дата: 16 марта 2013, 22:15:07 On Sat, Mar 16, 2013 at 6:19 PM, Dmitrey tm...@ukr.net wrote: --- Исходное сообщение --- От кого: Robert Kern robert.k

Re: [Numpy-discussion] OpenOpt Suite release 0.45

2013-04-10 Thread Robert Kern
On Wed, Apr 10, 2013 at 12:30 PM, Dmitrey tm...@ukr.net wrote: --- Исходное сообщение --- От кого: Robert Kern robert.k...@gmail.com Дата: 9 апреля 2013, 14:29:43 Well, it's your software. You are free to make it as buggy as you wish, I guess. Yes, and that's why each time I get

Re: [Numpy-discussion] OpenOpt Suite release 0.45

2013-04-10 Thread Robert Kern
On Wed, Apr 10, 2013 at 1:06 PM, Nathaniel Smith n...@pobox.com wrote: This kind of personal attack is never appropriate for this list. Please stop. My apologies. I will stop. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Canopy and Anaconda

2013-04-12 Thread Robert Kern
won't get good answers here. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Please stop bottom posting!!

2013-04-12 Thread Robert Kern
ecosystem questions here as a starting point, one must expect to be pointed to better resources when they exist and to follow up there. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo

Re: [Numpy-discussion] Random number generation and testing across different OS's.

2013-04-12 Thread Robert Kern
-bit platform, but those are usually indicative of bugs to be fixed. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy scalars and savez -- bug?

2013-04-18 Thread Robert Kern
, not for scalars. np.save() uses an np.asanyarray() to coerce its input which is why your scalar gets converted to a rank-zero array. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] numpy scalars and savez -- bug?

2013-04-18 Thread Robert Kern
/numpy/lib/format.py -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy scalars and savez -- bug?

2013-04-19 Thread Robert Kern
should start using more full-fledged and standard file formats. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy scalars and savez -- bug?

2013-04-19 Thread Robert Kern
, though. :-) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy scalars and savez -- bug?

2013-04-19 Thread Robert Kern
... but maybe I just need to give it a shot and see how it works. The rationale behind .npy format are laid out here: https://github.com/numpy/numpy/blob/master/doc/neps/npy-format.txt -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-25 Thread Robert Kern
On Thu, Apr 25, 2013 at 6:30 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 25, 2013 at 10:14 AM, Robert Kern robert.k...@gmail.com wrote: On Wed, Apr 24, 2013 at 10:37 PM, andrew giessel andrew.gies...@gmail.com wrote: Hello all- A while back I emailed the list about

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-25 Thread Robert Kern
On Thu, Apr 25, 2013 at 6:54 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 25, 2013 at 10:42 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, Apr 25, 2013 at 6:30 PM, Matthew Brett matthew.br...@gmail.com wrote: So the decision has to be based on some estimate

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-25 Thread Robert Kern
left out of any tutorials or guides. Then let's add it. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-26 Thread Robert Kern
) (3, 4, 6) (3, 4, 6) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-26 Thread Robert Kern
. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-04-26 Thread Robert Kern
for numpy.scipy.org that just issues HTTP 301 redirects for everything? I can look into getting that set up. https://help.github.com/articles/my-custom-domain-isn-t-working#multiple-domains-in-cname-file -- Robert Kern ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-04-26 Thread Robert Kern
-github IP, and install a HTTP redirect **or** a HTTPD rewrite on that IP. So we need to find a server to do that. Probably easiest to ask numfocus, right? There's no need. We'll just use the existing www.scipy.org Apache server to host the redirects. -- Robert Kern

Re: [Numpy-discussion] nanmean(), nanstd() and other missing functions for 1.8

2013-05-01 Thread Robert Kern
is available in the Cephes library. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] nanmean(), nanstd() and other missing functions for 1.8

2013-05-01 Thread Robert Kern
= np.tocomplex(x, y) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] could anyone check on a 32bit system?

2013-05-01 Thread Robert Kern
versions will probably also affect this, not just the target architecture. It's possible that those are actually the source of this observation. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman

Re: [Numpy-discussion] nanmean(), nanstd() and other missing functions for 1.8

2013-05-02 Thread Robert Kern
On Thu, May 2, 2013 at 2:38 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 7:28 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, May 2, 2013 at 12:03 PM, Nathaniel Smith n...@pobox.com wrote: On 1 May 2013 23:12, Charles R Harris charlesr.har...@gmail.com

Re: [Numpy-discussion] nanmean(), nanstd() and other missing functions for 1.8

2013-05-02 Thread Robert Kern
On Thu, May 2, 2013 at 3:28 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 7:47 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, May 2, 2013 at 2:38 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 7:28 AM, Robert Kern

Re: [Numpy-discussion] nanmean(), nanstd() and other missing functions for 1.8

2013-05-02 Thread Robert Kern
On Thu, May 2, 2013 at 3:57 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 8:40 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, May 2, 2013 at 3:28 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 7:47 AM, Robert Kern

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-05-04 Thread Robert Kern
On Sat, May 4, 2013 at 12:43 AM, Pauli Virtanen p...@iki.fi wrote: 26.04.2013 18:51, Robert Kern kirjoitti: [clip] Right now, the recurring cost is kicking the www.scipy.org wiki every once in a while under the deluge of spam. It's dying a slow death again. How about restricting editing

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-05-05 Thread Robert Kern
On Sun, May 5, 2013 at 1:34 PM, Pauli Virtanen p...@iki.fi wrote: 04.05.2013 14:12, Robert Kern kirjoitti: [clip] How about restricting editing pages to people in EditorGroup? There should be an option in Moin config for that. I don't think there is any other solution to the spam

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-05-05 Thread Robert Kern
On Sun, May 5, 2013 at 1:49 PM, Pauli Virtanen p...@iki.fi wrote: 05.05.2013 15:42, Robert Kern kirjoitti: [clip: spam] Manually. I have a whitelist of known-good pages that helps narrow it down. I'll take care of it in a few hours. Thanks a lot! Done. -- Robert Kern

Re: [Numpy-discussion] numpy ring buffer

2013-05-06 Thread Robert Kern
] -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy ring buffer

2013-05-06 Thread Robert Kern
On Mon, May 6, 2013 at 10:39 AM, Daniele Nicolodi dani...@grinta.net wrote: On 06/05/2013 11:01, Robert Kern wrote: np.roll() copies all of the data every time. It does not return a view. Are you sure about that? Either I'm missing something, or it returns a view in my testing

Re: [Numpy-discussion] numpy ring buffer

2013-05-06 Thread Robert Kern
On Mon, May 6, 2013 at 10:52 AM, Daniele Nicolodi dani...@grinta.net wrote: On 06/05/2013 11:39, Daniele Nicolodi wrote: On 06/05/2013 11:01, Robert Kern wrote: np.roll() copies all of the data every time. It does not return a view. Are you sure about that? Either I'm missing something

Re: [Numpy-discussion] References to Numerical Recipes in Numpy code

2013-05-08 Thread Robert Kern
has done an analysis of this situation around numpy, and if so what conclusion they might have reached? These are references to the book's text for the discussion of the algorithms and concepts in general, not copies of the code from the attached disk. -- Robert Kern

[Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Robert Kern
Is this a regression in numpy, or should the code in scipy be fixed to use a different test? Even if it is technically a regression, it might be one of those it's been broken so long, it's a feature now regressions. -- Robert Kern ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Robert Kern
On Thu, May 9, 2013 at 11:38 AM, Scott Sinclair scott.sinclair...@gmail.com wrote: On 9 May 2013 12:21, Robert Kern robert.k...@gmail.com wrote: With master numpy (and back to 1.6.1, at least): [~] |1 np.int32(3054212286) -1240755010 It seems like at one time, this used to raise

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread Robert Kern
of this, whom do I speak to regarding numpy builds on Mac OS? This mailing list. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Name change of the ptp() function

2013-05-10 Thread Robert Kern
the operative question here. Are the gains in readability worth the nontrivial costs of deprecating and removing the old name? I, for one, am generally not in favor of such deprecations. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Strange memory consumption in numpy?

2013-05-16 Thread Robert Kern
to get more memory, memory_profiler could not notice that, either. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Strange memory consumption in numpy?

2013-05-16 Thread Robert Kern
On Thu, May 16, 2013 at 1:32 PM, Martin Raspaud martin.rasp...@smhi.se wrote: On 16/05/13 10:26, Robert Kern wrote: Can anyone give a reasonable explanation ? memory_profiler only looks at the amount of memory that the OS has allocated to the Python process. It cannot measure the amount

Re: [Numpy-discussion] Equvalent function for Ceil() and Floor()

2013-05-20 Thread Robert Kern
return (quotient + (remainder 0)) * step def new_floor(x, step): quotient = x // step return quotient * step Floating point representation errors and accumulated floating point arithmetic inaccuracies may give you unexpected results in many cases, so be careful. -- Robert Kern

Re: [Numpy-discussion] Equvalent function for Ceil() and Floor()

2013-05-20 Thread Robert Kern
did get? -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] another indexing question

2013-05-20 Thread Robert Kern
of the corresponding values of x. I can't think of a better way than manually using loops. Any tricks here? All you need is a single loop over the alphabet, which is usually not problematic. means = np.empty([M]) for i in range(M): means[i] = y[x == i].mean() -- Robert Kern

Re: [Numpy-discussion] Equvalent function for Ceil() and Floor()

2013-05-20 Thread Robert Kern
reason that floating point includes signed zeros. http://en.wikipedia.org/wiki/Signed_zero -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] multivariate_normal issue with 'size' argument

2013-05-24 Thread Robert Kern
or a 64-bit build? That's probably the most relevant factor. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] __getitem__ and creating an array of objects

2013-05-30 Thread Robert Kern
: ZeroDivisionError: integer division or modulo by zero Any ideas on what is driving this difference in behavior? BTW, the value of item in the latter case is 0. What is len(t) in the latter case? -- Robert Kern ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] __getitem__ and creating an array of objects

2013-05-30 Thread Robert Kern
, then populate it using slice assignment. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] easy way to collapse the last two dimension of an array?

2013-06-03 Thread Robert Kern
(dd.shape[:-2] + (-1,)) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] SVD errors

2013-06-04 Thread Robert Kern
/flapack_esv.pyf.src#L231 -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] floats coerced to string with {:f}.format() ?

2013-06-06 Thread Robert Kern
their __format__() methods. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ndarray: How to create and initialize with a value other than ones or zeros?

2013-06-06 Thread Robert Kern
(arbitrary_fill_value) With just a little bit of extra help for structured dtypes (which is relevant for zeros() but not much for you, I don't think). -- Robert Kern On Thu, Jun 6, 2013 at 8:56 PM, James Adams monoco...@gmail.com wrote: I would like to create an array object and initialize the array's

Re: [Numpy-discussion] floats coerced to string with {:f}.format() ?

2013-06-06 Thread Robert Kern
thing more intuitive would be to disallow subclassing from the Python builtin types entirely, but that's *really* annoying. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] floats coerced to string with {:f}.format() ?

2013-06-06 Thread Robert Kern
the 'f' format code. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] adding booleans

2013-06-08 Thread Robert Kern
of confusion. However, there is no good way to issue deprecation warnings when you use them, so that means that upgrades would cause sudden, unwarned breakage, which we like to avoid. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] supporting quad precision

2013-06-10 Thread Robert Kern
in that situation, but you may run into problems with people using different compilers to build pyFFTW than what was used to build the numpy binary they have installed. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] numpy.filled, again

2013-06-12 Thread Robert Kern
really see why an np.empty() constructor exists, it seems to do the same thing that np.ndarray() does. It predates numpy and the numpy.ndarray type. However, I don't know if adding a np.ndarray_like() constructor would make much sense. Also that. -- Robert Kern

Re: [Numpy-discussion] Will transpose ever need to copy data?

2013-06-12 Thread Robert Kern
, there is no codepath in PyArray_Transpose() that even contemplates a memory copy. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.filled, again

2013-06-12 Thread Robert Kern
On Wed, Jun 12, 2013 at 1:47 PM, Daniele Nicolodi dani...@grinta.net wrote: On 12/06/2013 14:29, Robert Kern wrote: On Wed, Jun 12, 2013 at 1:26 PM, Daniele Nicolodi dani...@grinta.net wrote: There where the additional proposal (mostly neglected on the original thread) to add the 'fill

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Robert Kern
.]], [[ 0., 1., 2., 3., 4.], [ 0., 1., 2., 3., 4.], [ 0., 1., 2., 3., 4.], [ 0., 1., 2., 3., 4.]]]) It's wafer-thin! -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] PEP 208 and upstreaming numpy

2013-06-18 Thread Robert Kern
buffer interface. This allows libraries to communicate ndarray-like information using that interface instead of sharing a particular concrete data structure. http://www.python.org/dev/peps/pep-3118/ -- Robert Kern ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] PEP 208 and upstreaming numpy

2013-06-26 Thread Robert Kern
a change to the grammar. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.filled, again

2013-06-29 Thread Robert Kern
as np np.tile(3.0, (2,3)) array([[ 3., 3., 3.], [ 3., 3., 3.]]) If someone explained this, sorry to have missed it. On 6/29/2013 5:25 PM, Robert Kern wrote: It's implemented inefficiently. It is aimed at a different use case (building up arrays from other arrays

Re: [Numpy-discussion] Size/Shape

2013-07-17 Thread Robert Kern
one convention, C picked another; numpy and Python are built with C so we use its default conventions. Now, you are right that image dimensions are usually quoted as (width, height), but numpy arrays represent a much broader range of objects than images. -- Robert Kern

Re: [Numpy-discussion] azip

2013-07-18 Thread Robert Kern
., students) np.column_stack([x, b]) does everything you need. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Splitting numpydoc to a separate repo

2013-07-24 Thread Robert Kern
submodule (e.g. in Scipy). Moreover, its release cycle is not in any way tied to that of Numpy. Works for me. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] a list of all available integer dtypes

2013-08-09 Thread Robert Kern
, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64, numpy.uint64] -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Using as_strided to avoid copy on repeat (with 2-dimensional array)

2013-08-12 Thread Robert Kern
'as_strided' to avoid copy (and still get the same output shape for B) ? No, this would not be uniformly strided in the 0 axis. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Array addition inconsistency

2013-08-29 Thread Robert Kern
] a array([ 0, 1, 3, 6, 10]) My suspicition is that the second variant does not create intermediate storage, and thus works on the intermediate result, effectively performing a.cumsum(). Correct. Not creating intermediate storage is the point of using augmented assignment. -- Robert Kern

<    1   2   3   4   5   6   7   8   9   10   >