On Tue, Dec 20, 2011 at 9:10 PM, Mark Wiebe mwwi...@gmail.com wrote:
On Tue, Dec 20, 2011 at 6:24 PM, Geoffrey Irving irv...@naml.us wrote:
Hello,
As a followup to the prior thread on bugs in user defined types in
numpy, I converted my rational number class from C++ to C and switched
to 32
On Tue, Feb 14, 2012 at 5:17 PM, Travis Oliphant tra...@continuum.io wrote:
Your points are well taken. However, my point is that this has been
discussed on an open mailing list. Things weren't *as* open as they could
have been, perhaps, in terms of board selection. But, there was
On Wed, Feb 15, 2012 at 5:26 PM, Mark Wiebe mwwi...@gmail.com wrote:
On Wed, Feb 15, 2012 at 4:57 PM, josef.p...@gmail.com wrote:
On Wed, Feb 15, 2012 at 7:27 PM, Dag Sverre Seljebotn
d.s.seljeb...@astro.uio.no wrote:
On 02/15/2012 02:24 PM, Mark Wiebe wrote:
On Wed, Feb 15, 2012 at 1:36
On Thu, Feb 16, 2012 at 11:03 AM, Matthew Brett matthew.br...@gmail.com wrote:
Hi,
On Thu, Feb 16, 2012 at 4:23 AM, Francesc Alted franc...@continuum.io wrote:
On Feb 16, 2012, at 12:15 PM, Jason Grout wrote:
On 2/15/12 6:27 PM, Dag Sverre Seljebotn wrote:
But in the very end, when
On Thu, Feb 16, 2012 at 12:45 PM, Nathaniel Smith n...@pobox.com wrote:
On Thu, Feb 16, 2012 at 8:36 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, Feb 16, 2012 at 1:13 PM, Nathaniel Smith n...@pobox.com wrote:
On Thu, Feb 16, 2012 at 5:17 PM, Travis Vaught tra...@vaught.net
On Fri, Feb 17, 2012 at 10:21 AM, Mark Wiebe mwwi...@gmail.com wrote:
On Fri, Feb 17, 2012 at 11:52 AM, Eric Firing efir...@hawaii.edu wrote:
On 02/17/2012 05:39 AM, Charles R Harris wrote:
On Fri, Feb 17, 2012 at 8:01 AM, David Cournapeau courn...@gmail.com
mailto:courn...@gmail.com
On Fri, Feb 17, 2012 at 8:30 PM, Sturla Molden stu...@molden.no wrote:
Den 18. feb. 2012 kl. 05:01 skrev Jason Grout jason-s...@creativetrax.com:
On 2/17/12 9:54 PM, Sturla Molden wrote:
We would have to write a C++ programming tutorial that is based on Pyton
knowledge instead of C
On Fri, Feb 17, 2012 at 11:55 PM, David Cournapeau courn...@gmail.com wrote:
Le 18 févr. 2012 06:18, Christopher Jordan-Squire cjord...@uw.edu a
écrit :
On Fri, Feb 17, 2012 at 8:30 PM, Sturla Molden stu...@molden.no wrote:
Den 18. feb. 2012 kl. 05:01 skrev Jason Grout
jason-s
On Fri, Feb 17, 2012 at 11:31 PM, Matthew Brett matthew.br...@gmail.com wrote:
Hi,
On Fri, Feb 17, 2012 at 10:18 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
On Fri, Feb 17, 2012 at 8:30 PM, Sturla Molden stu...@molden.no wrote:
Den 18. feb. 2012 kl. 05:01 skrev Jason Grout jason-s
On Sun, Feb 19, 2012 at 2:14 AM, David Cournapeau courn...@gmail.com wrote:
On Sun, Feb 19, 2012 at 9:52 AM, Mark Wiebe mwwi...@gmail.com wrote:
On Sun, Feb 19, 2012 at 3:10 AM, Ben Walsh ben_w_...@yahoo.co.uk wrote:
Date: Sun, 19 Feb 2012 01:18:20 -0600
From: Mark Wiebe mwwi...@gmail.com
On Mon, Feb 20, 2012 at 9:18 AM, Dag Sverre Seljebotn
d.s.seljeb...@astro.uio.no wrote:
On 02/20/2012 08:55 AM, Sturla Molden wrote:
Den 20.02.2012 17:42, skrev Sturla Molden:
There are still other options than C or C++ that are worth considering.
One would be to write NumPy in Python. E.g. we
If you're using numpy 2.0 (the development branch), the function
numpy.random.choice might do what you're looking for.
-Chris
On Mon, Feb 20, 2012 at 8:35 PM, Yaroslav Halchenko
li...@onerussian.com wrote:
Hi to all Numeric Python experts,
could not think of a mailing list with better fit to
I'm trying to wrap some C code using cython. The C code can take
inputs in two modes: dense inputs and sparse inputs. For dense inputs
the array indexing is naive. I have wrappers for that. In the sparse
case the matrix entries are typically indexed via names. So, for
example, the library
Thanks for the answers! My responses are inline.
On Tue, Feb 11, 2014 at 8:36 AM, Chris Barker chris.bar...@noaa.gov wrote:
On Mon, Feb 10, 2014 at 10:43 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
I'm trying to wrap some C code using cython. The C code can take
inputs in two modes
This is kind of late to be jumping into the 'long thread of doom', but I've
been following most of the posts, so I'd figured I'd throw in my 2 cents.
I'm Mark's officemate over the summer, and we've been talking daily about
his design. I was skeptical of various details at first, but by now Mark's
Here's a short-ish summary of the topics discussed in the conference call
this afternoon. WARNING: I try to give examples for everything discussed to
make it as concrete as possible. However, most of the examples were not
explicitly discussed during the conference. I apologize in advance if I
mostly relaying stuff I said, although generally (please do
correct me if I am wrong) I am just re-expressing points that
Nathaniel has already made in the alterNEP text and the emails.
On Wed, Jul 6, 2011 at 12:46 AM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
...
Since we only have Mark
On Wed, Jul 6, 2011 at 10:44 AM, Matthew Brett matthew.br...@gmail.comwrote:
Hi,
On Wed, Jul 6, 2011 at 6:11 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wed, Jul 6, 2011 at 12:01 PM, Matthew Brett matthew.br...@gmail.com
wrote:
Hi,
On Wed, Jul 6, 2011 at 5:48 PM, Peter
On Wed, Jul 6, 2011 at 11:38 AM, Christopher Barker
chris.bar...@noaa.govwrote:
Christopher Jordan-Squire wrote:
If we follow those rules for IGNORE for all computations, we sometimes
get some weird output. For example:
[ [1, 2], [3, 4] ] * [ IGNORE, 7] = [ 15, 31 ]. (Where * is matrix
It'd be easier to follow if you just made changes/suggestions on github to
Mark's NEP directly. (You can checkout Mark's missing data branch to get the
NEP.) Then I'll be able to focus on the ways the suggestions differ or
compliment the current NEP.
-Chris Jordan-Squire
On Wed, Jul 6, 2011 at
On Wed, Jul 6, 2011 at 1:08 PM, josef.p...@gmail.com wrote:
On Wed, Jul 6, 2011 at 3:38 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
On Wed, Jul 6, 2011 at 11:38 AM, Christopher Barker
chris.bar...@noaa.gov
wrote:
Christopher Jordan-Squire wrote:
If we follow those
On Wed, Jul 6, 2011 at 5:03 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wednesday, July 6, 2011, Dag Sverre Seljebotn
d.s.seljeb...@astro.uio.no wrote:
On 07/06/2011 08:25 PM, Christopher Barker wrote:
Mark Wiebe wrote:
1) NA vs IGNORE and bitpattern vs mask are completely independent.
On Wed, Jul 6, 2011 at 5:38 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wednesday, July 6, 2011, Christopher Jordan-Squire cjord...@uw.edu
wrote:
On Wed, Jul 6, 2011 at 5:03 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wednesday, July 6, 2011, Dag Sverre Seljebotn
d.s.seljeb
On Wed, Jul 6, 2011 at 3:47 PM, josef.p...@gmail.com wrote:
On Wed, Jul 6, 2011 at 4:38 PM, josef.p...@gmail.com wrote:
On Wed, Jul 6, 2011 at 4:22 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
On Wed, Jul 6, 2011 at 1:08 PM, josef.p...@gmail.com wrote:
On Wed, Jul 6, 2011
On Thu, Jul 14, 2011 at 4:09 AM, Marcin Wlodarczak
mwlodarc...@uni-bielefeld.de wrote:
Hi,
I was wondering whether it is possible to mask specific entries in a
structured array. If I try to do the following:
x = ma.masked_array([(2, 1.), (8, 2.)], dtype=[('a',int), ('b', float)])
On Tue, Jul 19, 2011 at 11:19 AM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Tue, Jul 19, 2011 at 9:49 AM, Carlos Becker carlosbec...@gmail.comwrote:
I made more tests with the same operation, restricting Matlab to use a
single processing unit. I got:
- Matlab: 0.0063 sec avg
On Wed, Jul 27, 2011 at 3:09 PM, Robert Kern robert.k...@gmail.com wrote:
On Wed, Jul 27, 2011 at 14:47, Mark Wiebe mwwi...@gmail.com wrote:
On Wed, Jul 27, 2011 at 2:44 PM, Matthew Brett matthew.br...@gmail.com
wrote:
Hi,
On Wed, Jul 27, 2011 at 12:25 PM, Mark Wiebe
Hi Andrea--An easy way to get something like this would be
import numpy as np
import scipy.stats as stats
sigma = #some reasonable standard deviation for your application
x = stats.norm.rvs(size=1000, loc=125, scale=sigma)
x = x[x50]
x = x[x200]
That will give a roughly normal distribution to
On Mon, Aug 15, 2011 at 8:53 AM, Andrea Gavana andrea.gav...@gmail.comwrote:
Hi Chris and All,
On 12 August 2011 16:53, Christopher Jordan-Squire wrote:
Hi Andrea--An easy way to get something like this would be
import numpy as np
import scipy.stats as stats
sigma = #some
Regarding ufuncs and NA's, all the mechanics of handling NA from a
ufunc are in the PyUFunc_FromFuncAndData function, right? So the ufunc
creation docs don't have to be updated to include NA's?
-Chris JS
On Wed, Aug 24, 2011 at 7:08 PM, Mark Wiebe mwwi...@gmail.com wrote:
I've added C-API
Hi--
I've submitted a pull request for a new method for loading data from
text files into a record array/masked record array.
https://github.com/numpy/numpy/pull/143
Click on the link for more info, but the general idea is to create a
regular expression for what entries should look like and
Can you give an example matrix? I'm not a numerical linear algebra
expert, but I suspect that if your matrix is singular (or nearly so,
in floating point) then any inverse given will look pretty wonky. Huge
determinant, eigenvalues, operator norm, etc..
-Chris JS
On Tue, Aug 30, 2011 at 5:48 PM,
In numpy, is there a way of generating a random integer in a specified
range where the integers in that range have given probabilities? So,
for example, generating a random integer between 1 and 3 with
probabilities [0.1, 0.2, 0.7] for the three integers?
I'd like to know how to do this without
2011/8/31 Christopher Jordan-Squire cjord...@uw.edu
In numpy, is there a way of generating a random integer in a specified
range where the integers in that range have given probabilities? So,
for example, generating a random integer between 1 and 3 with
probabilities [0.1, 0.2, 0.7
Hi--I've just submitted a numpy 2.0 pull request for a function sample
in np.random. It's essentially an implementation of R's sample
function. It allows possibly non-uniform, possibly without-replacement
sampling from a given 1-D array-like. This is very useful for quickly
and cleanly creating
On Thu, Sep 1, 2011 at 10:01 PM, josef.p...@gmail.com wrote:
On Thu, Sep 1, 2011 at 6:02 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
Hi--I've just submitted a numpy 2.0 pull request for a function sample
in np.random. It's essentially an implementation of R's sample
function
On Thu, Sep 1, 2011 at 10:48 PM, Robert Kern robert.k...@gmail.com wrote:
On Thu, Sep 1, 2011 at 21:39, Christopher Jordan-Squire cjord...@uw.edu
wrote:
On Thu, Sep 1, 2011 at 10:01 PM, josef.p...@gmail.com wrote:
First these functions would need to be deprecated.
I discussed
On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern robert.k...@gmail.com wrote:
On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire cjord...@uw.edu
wrote:
So in the mean time, are there any suggestions for what this R sample
function should be called, since random.sample is apparently taken
Sorry I'm only now getting around to thinking more about this. Been
side-tracked by stats stuff.
On Fri, Sep 2, 2011 at 10:50 AM, Chris.Barker chris.bar...@noaa.gov wrote:
On 9/2/11 8:22 AM, Derek Homeier wrote:
I agree it would make a very nice addition, and could complement my
pre-allocation
and added them to the reference docs.
-Chris JS
On Thu, Sep 1, 2011 at 10:55 PM, Nathaniel Smith n...@pobox.com wrote:
On Thu, Sep 1, 2011 at 8:31 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern robert.k...@gmail.com wrote:
On Thu, Sep 1, 2011
On Thu, Sep 1, 2011 at 10:55 PM, Nathaniel Smith n...@pobox.com wrote:
On Thu, Sep 1, 2011 at 8:31 PM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern robert.k...@gmail.com wrote:
On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire cjord
On Fri, Sep 2, 2011 at 12:58 PM, Nathaniel Smith n...@pobox.com wrote:
On Fri, Sep 2, 2011 at 10:14 AM, Christopher Jordan-Squire
cjord...@uw.edu wrote:
I made the changes discussed here and pushed them to pull request.
https://github.com/numpy/numpy/pull/143#issuecomment-1980897
I think
On Fri, Sep 2, 2011 at 3:54 PM, Chris.Barker chris.bar...@noaa.gov wrote:
On 9/2/11 9:16 AM, Christopher Jordan-Squire wrote:
I agree it would make a very nice addition, and could complement my
pre-allocation option for loadtxt - however there I've also been made
aware that this approach
On Tue, Sep 6, 2011 at 9:32 AM, Derek Homeier
de...@astro.physik.uni-goettingen.de wrote:
On 02.09.2011, at 11:45PM, Christopher Jordan-Squire wrote:
and unfortunately it's for 1D-arrays only).
That's not bad for this use -- make a row a struct dtype, and you've got
a 1-d array anyway -- you
On Wed, Sep 7, 2011 at 2:52 PM, Chris.Barker chris.bar...@noaa.gov wrote:
On 9/2/11 2:45 PM, Christopher Jordan-Squire wrote:
It doesn't have to parse the entire file to determine the dtypes. It
builds up a regular expression for what it expects to see, in terms of
dtypes. Then it just loops
8, 2011 at 3:57 PM, Chris.Barker chris.bar...@noaa.gov wrote:
On 9/8/11 1:43 PM, Christopher Jordan-Squire wrote:
I just ran a quick test on my machine of this idea. With
dt = np.dtype([('x',np.float32),('y', np.int32),('z', np.float64)])
temp = np.empty((), dtype=dt)
temp2 = np.zeros(1,dtype
On Tue, Sep 13, 2011 at 2:41 PM, Chris.Barker chris.bar...@noaa.gov wrote:
On 9/12/11 4:38 PM, Christopher Jordan-Squire wrote:
I did some timings to see what the advantage would be, in the simplest
case possible, of taking multiple lines from the file to process at a
time.
Nice work, only
On Wed, Sep 14, 2011 at 5:30 PM, Christopher Barker
chris.bar...@noaa.gov wrote:
On 9/14/11 2:41 PM, Benjamin Root wrote:
Are you sure the f2 code works? a.resize() takes only a shape tuple. As
coded, you should get an exception.
wow, what an idiot!
I think I just timed how long it takes
On Tue, Sep 20, 2011 at 10:42 AM, Yannick Versley yvers...@gmail.com wrote:
Hi all,
I've been working quite a lot with sparse vectors and sparse matrices
(basically
as feature vectors in the context of machine learning), and have noticed
that they
do crop up in a lot of places (e.g. the
On Wed, Sep 28, 2011 at 9:15 AM, Grové grove.st...@gmail.com wrote:
Hi,
I am trying out the latest version of numpy 2.0 dev:
np.__version__
Out[44]: '2.0.0.dev-aded70c'
I am trying to import CSV data that looks like this:
50 matches
Mail list logo