I am trying to create a subclass of ndarray that has additional
attributes. These attributes are maintained with most numpy functions if
__array_finalize__ is used.
The main exception I have found is concatenate (and hstack/vstack, which
just wrap concatenate). In this case, __array_finalize__ i
On Tue, Jan 22, 2013 at 1:44 PM, Sebastian Berg
wrote:
> Hey,
>
> On Tue, 2013-01-22 at 10:21 +0100, Todd wrote:
>
> > The main exception I have found is concatenate (and hstack/vstack,
> > which just wrap concatenate). In this case, __array_finalize__ is
> > pa
On Wed, Jan 30, 2013 at 11:20 AM, Sebastian Berg wrote:
>
> >
> >
> > > In my particular case at least, there are clear ways to
> > handle corner
> > > cases (like being passed a class that lacks these
> > attributes), so in
> > > principle there no problem
On Feb 20, 2013 12:47 AM, "Rob Clewley" wrote:
>
> Hi all, and apologies for a little cross-posting:
>
> First, thanks to those of you who have used and contributed to the
> PyDSTool math modeling environment [1]. This project has greatly
> benefitted from the underlying platform of numpy / scipy
We don't actually want remove sensitive data, but this tutorial should
still allow us to remove a file totally and completely from git history. It
doesn't look that hard:
https://help.github.com/articles/remove-sensitive-data
It will require everyone to rebase, so if you want to do this it may be
The problem with b is that it breaks down if the two status have the same
dimensionality.
I think a better approach would be for
a in b
With a having n dimensions, it returns true if there is any subarray of b
that matches a along the last n dimensions.
So if a has 3 dimensions and b has 6, a i
On Tue, Feb 26, 2013 at 10:58 AM, Sebastian Berg wrote:
> On Mon, 2013-02-25 at 22:04 -0500, josef.p...@gmail.com wrote:
> > On Mon, Feb 25, 2013 at 9:58 PM, wrote:
> > > On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg
> > > wrote:
> > >> On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrot
Is numpy planning to participate in GSOC this year, either on their own or
as a part of another group? If so, should we start trying to get some
project suggestions together?
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.
On Mon, Mar 4, 2013 at 9:41 PM, Ralf Gommers wrote:
>
>
>
> On Tue, Feb 26, 2013 at 11:17 AM, Todd wrote:
>
>> Is numpy planning to participate in GSOC this year, either on their own
>> or as a part of another group?
>>
>
> If we participate, it should b
On Mar 5, 2013 7:53 PM, "Nathaniel Smith" wrote:
>
> On 4 Mar 2013 23:21, "Jaime Fernández del Río"
wrote:
> >
> > On Mon, Mar 4, 2013 at 2:29 PM, Todd wrote:
> >>
> >>
> >> 5. Currently dtypes are limited to a set of fixed type
On Tue, Mar 12, 2013 at 8:20 AM, soumen ganguly
wrote:
> Hello,
>
> There are some doubts that i have regarding the argmax() method of
> numpy.As described in reference doc's of numpy,argmax(axis=None,out=None)
> returns the indices of the maximum value along the given axis(In this case
> 0 is def
On Sat, Mar 23, 2013 at 12:21 PM, Ralf Gommers wrote:
>
> That's not the case. The official binaries for NumPy and SciPy are on
> SourceForge. The Windows installers on PyPI are there to make easy_install
> work, but they're likely slower than the SF installers (no SSE2/SSE3
> instructions).
>
> R
>From what I can see, numpy doesn't have any functions for handling polar or
spherical coordinate to/from cartesian coordinate conversion. I think such
methods would be pretty useful. I am looking now and it doesn't look that
hard to create functions to convert between n-dimensional cartesian and
On Fri, Mar 29, 2013 at 4:33 PM, Angus McMorland wrote:
> On 29 March 2013 11:15, Todd wrote:
> > From what I can see, numpy doesn't have any functions for handling polar
> or
> > spherical coordinate to/from cartesian coordinate conversion. I think
> such
> >
On Mon, Apr 1, 2013 at 1:58 PM, Ralf Gommers wrote:
>
>
>
> On Tue, Mar 26, 2013 at 12:27 AM, Ralf Gommers wrote:
>
>>
>>
>>
>> On Thu, Mar 21, 2013 at 10:20 PM, Ralf Gommers wrote:
>>
>>> Hi all,
>>>
>>> It is the time of the year for Google Summer of Code applications. If we
>>> want to partici
On Tue, Apr 2, 2013 at 8:12 PM, Ralf Gommers wrote:
>
>
>
> On Mon, Apr 1, 2013 at 2:27 PM, Todd wrote:
>
>>
>> There were a number of other ideas in this thread:
>>
>> http://mail.scipy.org/pipermail/numpy-discussion/2013-March/065699.html
>>
>
x,i=numpy.unique(y, return_inverse=True)
f=[numpy.where(i==ind) for ind in range(len(x))]
x will give you the list of unique values, and f will give you the indices
of each corresponding value in x. So f[0] is the indices of x[0] in y.
To explain, unique in this form gives two outputs, a sorted,
On Wed, Apr 17, 2013 at 10:46 AM, Todd wrote:
> x,i=numpy.unique(y, return_inverse=True)
> f=[numpy.where(i==ind) for ind in range(len(x))]
>
>
>
A better version would be (np.where returns tuples, but we don't want
tuples):
x,i=numpy.unique(y, return_inverse=True)
f=[n
>
> The data type:
> x in ndarray and x[ i ]--> int64
> type(f) --> ' list '
> type( f[ 0 ] ) --> ' tuple '
> type( f[ 0][0] ) --> 'ndarray'
> type( f[ 0 ][ 0 ][ 0] ) --> 'int64'
>
> How do you think to avoid diversity if data type in this example? I
On Wed, May 1, 2013 at 3:36 AM, Benjamin Root wrote:
>
> Are there any other functions that others feel are "missing" from numpy
> and would like to see for v1.8? Let's discuss them here.
>
As I mentioned before, I think numpy should have some equations for dealing
with n-dimensional vectors (b
On Wed, May 1, 2013 at 5:22 PM, Daπid wrote:
> On 1 May 2013 17:13, Todd wrote:
> > Speaking of which, I think there should be a function to construct a
> complex
> > array out of two identically-shaped floating-point arrays, as well as
> > perhaps an np.i class that con
I see that the plan to merge old Numeric into the python standard library,
PEP 208, is listed as withdrawn, although no reasons are given as far as I
could see.
Considering how mature Numpy has become, and how common it is as a
dependency for python packages, I was wondering if there were still pl
But wouldn't there be a benefit from integrating ndarrays directly into the
grammar like lists, tuples, and dictionaries?
On Jun 18, 2013 11:41 AM, "Robert Kern" wrote:
>
> On Tue, Jun 18, 2013 at 10:33 AM, Todd wrote:
> > I see that the plan to merge old Numer
On Feb 11, 2014 3:23 AM, "Alan G Isaac" wrote:
>
> On 2/10/2014 7:39 PM, Pauli Virtanen wrote:
> > The issue here is semantics for basic linear algebra operations, such as
> > matrix multiplication, that work for different matrix objects, including
> > ndarrays.
>
>
> I'll see if I can restate my
On Feb 11, 2014 5:01 AM, "Alexander Belopolsky" wrote:
>
>
> On Mon, Feb 10, 2014 at 11:31 AM, Nathaniel Smith wrote:
>>
>> And in the long run, I
>> think the goal is to move people away from inheriting from np.ndarray.
>
>
> This is music to my ears,
There are a lot of units (meter, foot, buil
On Feb 18, 2014 11:55 AM, "Robert Kern" wrote:
>
> On Tue, Feb 18, 2014 at 9:51 AM, Sturla Molden
wrote:
> > Charles R Harris wrote:
> >> This is apropos issue #899 < >> href="https://github.com/numpy/numpy/issues/899";>
https://github.com/numpy/numpy/issues/899>,
> >> where it is suggested that
On Mar 3, 2014 3:16 AM, "Charles R Harris"
wrote:
>
> This is from OS X 9
>
> if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
> goto fail;
> if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
> goto fail;
> goto fail;
> if ((err = SSLHas
On 5 Jun 2014 02:57, "Nathaniel Smith" wrote:
>
> On Wed, Jun 4, 2014 at 7:18 AM, Travis Oliphant
wrote:
> And numpy will be much harder to replace than numeric --
> numeric wasn't the most-imported package in the pythonverse ;-).
If numpy is really such a core part of python ecosystem, does it
On 5 Jun 2014 14:28, "David Cournapeau" wrote:
>
>
>
>
> On Thu, Jun 5, 2014 at 9:44 AM, Todd wrote:
>>
>>
>> On 5 Jun 2014 02:57, "Nathaniel Smith" wrote:
>> >
>> > On Wed, Jun 4, 2014 at 7:18 AM, Travis Olip
On Jul 2, 2014 10:49 AM, "Nathaniel Smith" wrote:
>
> I admit I can't actually think of any features this would enable for us
though...
Could it be useful for structured arrays?
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.sc
On Jul 16, 2014 11:43 AM, "Chris Barker" wrote:
> So numpy should have dtypes to match these. We're a bit stuck, however,
because 'S' mapped to the py2 string type, which no longer exists in py3.
Sorry not running py3 to see what 'S' does now, but I know it's bit broken,
and may be too late to cha
On Mon, Sep 22, 2014 at 5:31 AM, Nathaniel Smith wrote:
> On Sun, Sep 21, 2014 at 7:50 PM, Stephan Hoyer wrote:
> My feeling though is that in most of the cases you mention,
> implementing a new array-like type is huge overkill. ndarray's
> interface is vast and reimplementing even 90% of it is
On Tue, Nov 4, 2014 at 2:50 PM, Sebastian Wagner wrote:
> Hello,
>
> I want to bring up Issue #2522 'numpy.diff fails on unsigned integers
> (Trac #1929)' [1], as it was resonsible for an error in one of our
> programs. Short explanation of the bug: np.diff performs a subtraction
> on the input a
On Thu, Nov 13, 2014 at 8:10 AM, Sebastian wrote:
> On 2014-11-04 19:44, Charles R Harris wrote:
> > On Tue, Nov 4, 2014 at 11:19 AM, Sebastian wrote:
> >
> >> On 2014-11-04 15:06, Todd wrote:
> >>> On Tue, Nov 4, 2014 at 2:50 PM, Sebastian Wagner >
KDE calls them"junior jobs".
On Nov 27, 2014 2:29 AM, "Benjamin Root" wrote:
> FWIW, matplotlib calls it "low hanging fruit". I think it is a better name
> than "newcomers".
>
> On Wed, Nov 26, 2014 at 1:19 PM, Aldcroft, Thomas <
> aldcr...@head.cfa.harvard.edu> wrote:
>
>>
>>
>> On Wed, Nov 26,
On Tue, Oct 28, 2014 at 5:28 AM, Nathaniel Smith wrote:
> On 28 Oct 2014 04:07, "Matthew Brett" wrote:
> >
> > Hi,
> >
> > On Mon, Oct 27, 2014 at 8:07 PM, Sturla Molden
> wrote:
> > > Sturla Molden wrote:
> > >
> > >> If we really need a
> > >> kick-ass fast FFT we need to go to libraries lik
On Thu, Dec 11, 2014 at 4:55 PM, Robert Kern wrote:
> On Thu, Dec 11, 2014 at 3:53 PM, Eric Moore
> wrote:
> >
> > On Thu, Dec 11, 2014 at 10:41 AM, Todd wrote:
>
> >> I recently became aware of another C-library for doing FFTs (and other
> things):
>
On Feb 10, 2015 1:03 AM, "cjw" wrote:
>
>
> On 09-Feb-15 2:34 AM, Stefan Reiterer wrote:
>>
>> Ok that are indeed some good reasons to keep the status quo, especially
since
>> performance is crucial for numpy.
>> It's a dillemma: Using the matrix class for linear algebra would be the
correct
>> wa
I am not able to mentor, but I have some ideas about easier projects.
These may be too easy, too hard, or not even desirable so take them or
leave them as you please.
scipy:
Implement a set of circular statistics functions comparable to those in R
or MATLAB circular statistics toolbox.
Either im
On Apr 4, 2015 10:54 AM, "Nathaniel Smith" wrote:
>
> On Sat, Apr 4, 2015 at 12:17 AM, Ralf Gommers
wrote:
> >
> >
> > On Sat, Apr 4, 2015 at 1:54 AM, Nathaniel Smith wrote:
> >>
> >>
> >> But, the real problem here is that we have two different array duck
> >> types that force everyone to write
On May 28, 2015 7:06 PM, "David Cournapeau" wrote:
> On Fri, May 29, 2015 at 2:00 AM, Andrew Collette <
andrew.colle...@gmail.com> wrote:
>>
>> In any case I've always been surprised that NumPy is distributed
>> through SourceForge, which has been sketchy for years now. Could it
>> simply be hoste
>> Also, I think the new cheese shop/warehouse server they are using scales
>> better, so size is not nearly the same concern as before.
>>
>> Ben Root
>> On May 29, 2015 1:43 AM, "Todd" wrote:
>>
>>> On May 28, 2015 7:06 PM, &q
On Jul 4, 2015 1:47 AM, "Nathaniel Smith" wrote:
>
>
> If you have other links on this topic that you are think are
> interesting, please add them to the thread!
>
The KDE e.v. - represents the KDE community in legal and financial
matters.
https://ev.kde.org/
On Jul 6, 2015 6:21 PM, "Francesc Alted" wrote:
>
> 2015-07-06 18:04 GMT+02:00 Jaime Fernández del Río :
>>
>> On Mon, Jul 6, 2015 at 10:18 AM, Francesc Alted wrote:
>>>
>>> Hi,
>>>
>>> I have stumbled into this:
>>>
>>> In [62]: sa = np.fromiter(((i,i) for i in range(1000*1000)),
dtype=[('f0', n
On Oct 29, 2015 00:29, "Sandro Tosi" wrote:
>
> please, pretty please, do not disable setup.py install or at least
> keep providing a way for distribution (Debian in this case) to be able
> to build/install numpy in a temporary location for packaging reasons.
> pip is not the solution for us
What
When you try to transpose a 1D array, it does nothing. This is the correct
behavior, since it transposing a 1D array is meaningless. However, this
can often lead to unexpected errors since this is rarely what you want.
You can convert the array to 2D, using `np.atleast_2d` or `arr[None]`, but
thi
I would make `arr.T2` the same as `np.atleast_2d(arr).T`. So a 1D array
would act as a row vector, since that is already the convention for
coercing 1D arrays to 2D.
On Tue, Apr 5, 2016 at 10:49 PM, Juan Nunez-Iglesias
wrote:
> Todd,
>
> Would you consider a 1D array to be a row ve
On Tue, Apr 5, 2016 at 11:14 PM, Nathaniel Smith wrote:
> On Tue, Apr 5, 2016 at 7:11 PM, Todd wrote:
> > When you try to transpose a 1D array, it does nothing. This is the
> correct
> > behavior, since it transposing a 1D array is meaningless. However, this
> can
> &g
On Wed, Apr 6, 2016 at 11:44 AM, Chris Barker - NOAA Federal <
chris.bar...@noaa.gov> wrote:
> But the truth is that Numpy arrays are arrays, not matrices and vectors.
>
> The "right" way to do this is to properly extend and support the
> matrix object, adding row and column vector objects, and th
On Wed, Apr 6, 2016 at 5:20 PM, Nathaniel Smith wrote:
> On Wed, Apr 6, 2016 at 10:43 AM, Todd wrote:
> >
> > My intention was to make linear algebra operations easier in numpy. With
> > the @ operator available, it is now very easy to do basic linear algebra
> on
&g
On Thu, Apr 7, 2016 at 4:59 AM, Joseph Martinot-Lagarde <
contreba...@gmail.com> wrote:
> Alan Isaac gmail.com> writes:
>
> > But underlying the proposal is apparently the
> > idea that there be an attribute equivalent to
> > `atleast_2d`. Then call it `d2p`.
> > You can now have `a.d2p.T` which
On Thu, Apr 7, 2016 at 3:39 AM, Irvin Probst wrote:
> On 06/04/2016 04:11, Todd wrote:
>
> When you try to transpose a 1D array, it does nothing. This is the
> correct behavior, since it transposing a 1D array is meaningless. However,
> this can often lead to unexpected error
On Thu, Apr 7, 2016 at 11:35 AM, wrote:
> On Thu, Apr 7, 2016 at 11:13 AM, Todd wrote:
> > On Wed, Apr 6, 2016 at 5:20 PM, Nathaniel Smith wrote:
> >>
> >> On Wed, Apr 6, 2016 at 10:43 AM, Todd wrote:
> >> >
> >> > My intention wa
On Wed, Oct 26, 2016 at 4:30 PM, Pavlyk, Oleksandr <
oleksandr.pav...@intel.com> wrote:
>
> The module under review, similarly to randomstate package, provides
> alternative basic pseudo-random number generators (BRNGs), like MT2203,
> MCG31, MRG32K3A, Wichmann-Hill. The scope of support differ, w
On Thu, Oct 27, 2016 at 4:25 AM, Ralf Gommers
wrote:
>
>
> On Thu, Oct 27, 2016 at 10:25 AM, Pavlyk, Oleksandr <
> oleksandr.pav...@intel.com> wrote:
>
>> Please see responses inline.
>>
>>
>>
>> *From:* NumPy-Discussion [mailto:numpy-discussion
On Thu, Oct 27, 2016 at 10:43 AM, Julian Taylor <
jtaylor.deb...@googlemail.com> wrote:
> On 10/27/2016 04:30 PM, Todd wrote:
>
>> On Thu, Oct 27, 2016 at 4:25 AM, Ralf Gommers > <mailto:ralf.gomm...@gmail.com>> wrote:
>>
>>
>> On
b...@googlemail.com> wrote:
>
>> On 10/27/2016 04:52 PM, Todd wrote:
>>
>>> On Thu, Oct 27, 2016 at 10:43 AM, Julian Taylor
>>> mailto:jtaylor.deb...@googlemail.com>>
>>> wrote:
>>>
>>> On 10/27/2016 04:30 PM,
On Thu, Oct 27, 2016 at 12:12 PM, Nathaniel Smith wrote:
> Ever notice how Anaconda doesn't provide pyfftw? They can't legally ship
> both MKL and pyfftw, and they picked MKL.
Anaconda does ship GPL code [1]. They even ship GPL code that depends on
numpy, such as cvxcanon and pystan, and there
On Mon, Jan 2, 2017 at 8:36 PM, Charles R Harris
wrote:
> Hi All,
>
> Just throwing this click bait out for discussion. Now that the `@`
> operator is available and things seem to be moving towards Python 3,
> especially in the classroom, we should consider the real possibility of
> deprecating t
On Jan 6, 2017 20:28, "Ralf Gommers" wrote:
On Sat, Jan 7, 2017 at 2:21 PM, CJ Carey wrote:
>
> On Fri, Jan 6, 2017 at 6:19 PM, Ralf Gommers
> wrote:
>
>> This sounds like a reasonable idea. Timeline could be something like:
>>
>> 1. Now: create new package, deprecate np.matrix in docs.
>> 2
On Mar 15, 2017 05:47, "Ralf Gommers" wrote:
On Wed, Mar 15, 2017 at 3:21 PM, Matthew Brett
wrote:
> Hi,
>
> The scipy.org site is down at the moment, and has been for more than 36
> hours:
>
> https://github.com/numpy/numpy/issues/8779#issue-213781439
>
> This has happened before:
>
> https:
marray and build it from source
yourself, this problem is fixed in numarray CVS here:
http://sourceforge.net/cvs/?group_id=1369
You can check it out like this:
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/numpy login
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/numpy co
-P /numarray
/
Regards,
Tod
s not iterable
This one looks as if it does not know what .o or .a or .obj files are.
Fixing this one looks like hours of digging through the code. Is there a
simpler solution?
Thanks in advance,
Todd
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
ut the ide's as being married to
them, but I do like to use the best tools available. NB could be, but is
not for python.
Thanks again for helping to shorten my search for tools.
Todd
On 8/26/2012 5:55 PM, Chris Barker wrote:
> Todd,
>
> The short version is: you can't do th
On 8/27/2012 9:51 AM, Chris Barker wrote:
> On Sun, Aug 26, 2012 at 8:53 PM, Todd Brunhoff wrote:
>> Chris,
>> winpdb is ok, although it is only a graphic debugger, not an ide, emphasis
>> on the 'd'.
> yup -- I mentioned, that as you seem to like NB -- and I k
e address and strides,
t think I'm screwed as far as translating indices go.
Any suggestions?
Thanks!
-Todd
__
Todd Gamblin, tgamb...@llnl.gov, http://people.llnl.gov/gamb
, 1) (1, 1) (2, 0) (3, 0) (2, 1) (3, 1) (0, 2) (1, 2)
(0, 3) (1, 3) (2, 2) (3, 2) (2, 3) (3, 3)
Thoughts?
-Todd
__
Todd Gamblin, tgamb...@llnl.gov, http://people.llnl.gov/gamblin2
CASC @ Lawrence Livermore National Laboratory, Liv
is brings up another point. This is pure python, so it won't be super-fast.
What's the typical way things are integrated and optimized in numpy? Do you
contribute something like this in python first then convert to cython/C as
necessary? Or would you want it in C to begin with?
-To
which look like
problems on LP64 platforms. Is anyone using numpy in 64-bit
environments on a day-to-day basis? Are you using very large arrays,
i.e. over 2G in size?
Cheers,
Todd
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
I'm having some numpy problems when using the package with Python. My
admin installed numpy for me and we think it's installed right. When
I'm in python and type 'import numpy' I get the "Running numpy from
source directory". It doesn't matter which directory I launch python out
of, it always giv
On Behalf Of Robert Kern
Sent: Tuesday, June 02, 2009 2:24 PM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] numpy issues at startup
On Tue, Jun 2, 2009 at 13:19, Turner, Todd J Civ USAF AFMC AFRL/RXLMP
wrote:
> I’m having some numpy problems when using the package with Pytho
71 matches
Mail list logo