I'm getting a 404 on that url.
--bb
On Wed, Oct 22, 2008 at 7:36 PM, David Cournapeau
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>A quick note to mention I have generated a "superpack" installer for
> scipy, for testing purposes. This is similar to numpy superpack
> installer: the installer detects y
On Tue, Oct 14, 2008 at 2:56 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote:
> Hi Matthew
>
> Here is an implementation in Python, ctypes and in weave:
>
> http://mentat.za.net/source/pnpoly.tar.bz2
>
Thanks! Looks better than what I wrote.
--bb
__
On Tue, Oct 14, 2008 at 8:46 AM, Pierre GM <[EMAIL PROTECTED]> wrote:
>> 2008/10/13 Mathew Yeates <[EMAIL PROTECTED]>
>>
>> > Is there a routine in scipy for telling whether a point is inside a
>> > convex 4 sided polygon?
>
> Mathew,
> You could use OGR (www.gdal.org)
>
> Example
> -
On Sat, Oct 11, 2008 at 2:16 PM, Linda Seltzer
<[EMAIL PROTECTED]> wrote:
> I would appreciate it if someone could answer my question without
> referring to subjects such as APIs and interfaces, since I am only
> concerned with a mathematical application at this time.
> In most tutorials, array exa
Anything that defeats the purpose of doing * imports is good in my book. :-)
Seriously, willy nilly import of any package into the base namespace
is just asking for trouble.
Tell your class to import numpy as np, then there will be no chance of
confusion.
Then later tell them about "from numpy i
On Fri, Jul 11, 2008 at 5:55 AM, Anne Archibald <[EMAIL PROTECTED]>
wrote:
> 2008/7/10 Dan Lussier <[EMAIL PROTECTED]>:
>
> We seem to get quite a few posts from people wanting some kind of
> spatial data structure (whether they know it or not). Would it make
> sense to come up with some kind of c
On Sat, Apr 26, 2008 at 10:27 AM, Charles R Harris
<[EMAIL PROTECTED]> wrote:
>
>
> On Fri, Apr 25, 2008 at 6:38 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote:
> > OK, we are not converging in time for the release.
> > So can we at least raise a TypeError on scalar
> > indexing of matrices, so that we
On Fri, Apr 25, 2008 at 10:23 AM, Christopher Barker
<[EMAIL PROTECTED]> wrote:
> Alan G Isaac wrote:
> > On Thu, 24 Apr 2008, Christopher Barker apparently wrote:
> >> I suppose a "Vector" can be either a (n,1) or a (1,n)
> >> matrix that allows single indexing.
> >
> > This bothers me.
> >
On Thu, Apr 24, 2008 at 11:16 AM, Timothy Hochberg
<[EMAIL PROTECTED]> wrote:
>
> [CHOP]
>
> The proposals thus far don't address two of the major issues I have with the
> matrix class:
The thing that seems missing to me is support for LAPACK's banded and
packed (triangular) storage formats. I do
You might find out a lot from reading through this page:
http://www.scipy.org/NumPy_for_Matlab_Users
What I think that doesn't say is why the two classes are needed in
NumPy. Basically, the reason for that is that Matlab has .* and *
which mean different things, but Python only has the one * ope
On Mon, Apr 14, 2008 at 1:08 PM, David Cournapeau
<[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > Seems to work here now, too!
> >
> > It doesn't tell you in an easy to see place what version of SSE it
> > decides to use. Do you think that's ok
-
Ran 887 tests in 1.750s
OK
On Mon, Apr 14, 2008 at 12:24 PM, David Cournapeau
<[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> >
> > That's right. No executio
On Mon, Apr 14, 2008 at 10:57 AM, David Cournapeau
<[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > What's the installer supposed to do?
>
> It is supposed to install numpy :) The fact that it is not clear is not
> good, obviously. Suggestions to make
se3.exe" but no executing
seems to have happened.
--bb
On Mon, Apr 14, 2008 at 10:37 AM, Bill Baxter <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 10:07 AM, David Cournapeau
> <[EMAIL PROTECTED]> wrote:
> > Jarrod Millman wrote:
> > > Hello,
>
On Mon, Apr 14, 2008 at 10:07 AM, David Cournapeau
<[EMAIL PROTECTED]> wrote:
> Jarrod Millman wrote:
> > Hello,
> >
> > David Cournapeau has prepared a new win32 installer, which is aimed at
> > solving the recurring problem of non working atlas on different sets
> > of CPU. This installer si
I'm afraid I'm not much help answering your questions. But one thing
I've wondered about f2py is if it could be generalized into an f2***
tool. How intertwined is the analysis of the fortran with the
synthesis of the python? There are lots of languages that could
benefit from a fortran wrapper g
On Jan 9, 2008 9:18 AM, Charles R Harris <[EMAIL PROTECTED]> wrote:
> On Jan 8, 2008 5:01 PM, Bill Baxter <[EMAIL PROTECTED]> wrote:
> > On Jan 9, 2008 8:03 AM, Charles R Harris <[EMAIL PROTECTED]>
> wrote:
> > > On Jan 8, 2008 1:58 PM, Bill Baxter < [
On Jan 9, 2008 8:03 AM, Charles R Harris <[EMAIL PROTECTED]> wrote:
> On Jan 8, 2008 1:58 PM, Bill Baxter <[EMAIL PROTECTED]> wrote:
> > If you're really going to try to do it, Charles, there's an
> > implementation of float16 in the OpenEXR toolkit.
> &
If you're really going to try to do it, Charles, there's an
implementation of float16 in the OpenEXR toolkit.
http://www.openexr.com/
Or more precisely it's in the files in the Half/ directory of this:
http://download.savannah.nongnu.org/releases/openexr/ilmbase-1.0.1.tar.gz
I don't know if it's
On Jan 7, 2008 2:30 AM, David Cournapeau <[EMAIL PROTECTED]> wrote:
> > to what the trade-offs are. It mentions "batteries included" binary
> > distributions as one solution without giving any link.
>
> FIY, it seems you can find it here (I have not tried it):
>
> http://qct.sourceforge.net/Mercur
I've been playing around with Hg on windows for an hour or so now. My
overall impression is that the installation process isn't quite there
yet.
The basic binary installer goes very smoothly, and after that I was
able to open up a prompt and type hg commands right away. But going
through the tut
On Jan 6, 2008 6:38 PM, Robert Kern <[EMAIL PROTECTED]> wrote:
>
> Bill Baxter wrote:
> > http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram
> >
> > This is a bit puzzling. I understand better merging isn't the only
> > reason to choose DVC
http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram
This is a bit puzzling. I understand better merging isn't the only
reason to choose DVCS, but the above page basically says that
Mercurial just uses whatever external merge program it can find. So
the file-level merging sounds like it
On Jan 6, 2008 8:25 AM, Stefan van der Walt <[EMAIL PROTECTED]> wrote:
> I recall something you said to David last week, regarding merges with
> SVN: that a person never knows how to do it until *after* you've done
> it! We often make branches in scipy and numpy, and stand a lot to
> gain from a d
I just read the blog post about Travis switching jobs Enthought. Was
that posted here? If so I'm surprised I missed it.
Anyway that sounds like great news for the NumPy/SciPy communities. I
hope it also is great news for you and your family, Travis.
I have to say that I took some amount of inspi
rs and
> such), really well done.
>
> Matthieu
>
> 2007/11/2, Bill Baxter <[EMAIL PROTECTED]>:
> >
> >
> >
> > On Nov 2, 2007 3:50 PM, Matthieu Brucher <[EMAIL PROTECTED]>
> wrote:
> >
> > > You can look at Vigra (but I don't know if the
On Nov 2, 2007 3:50 PM, Matthieu Brucher <[EMAIL PROTECTED]> wrote:
> You can look at Vigra (but I don't know if there is linear algebra, but
> there are views, multidimensional containers, ...).
Thanks for the link. Hadn't heard of that one.
--bb
___
ROTECTED]> wrote:
> http://www.oonumerics.org/blitz/
>
>
> On Fri, 2 Nov 2007, Bill Baxter wrote:
>
> > Does anyone know of a C or C++ library that's similar to NumPy?
> > Seems like all the big C++ efforts are focused on linear algebra
> > rather than gene
Does anyone know of a C or C++ library that's similar to NumPy?
Seems like all the big C++ efforts are focused on linear algebra
rather than general purpose multidimensional arrays.
I've written a multidimensional array class in the D programming
language with an API modeled loosely after NumPy's.
On 10/17/07, Julien Hillairet <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
> First of all, I'm sorry if this question had already been asked. I've
> searched on the gmane archive and elsewhere on internet, but I didn't found
> the answer to my question.
>
> As expected, the dot product of 2 'classical'
On 9/25/07, Thomas Schreiner <[EMAIL PROTECTED]> wrote:
>
> Andrew Straw schrieb:
> > Thomas Schreiner wrote:
> >> Am I doing anything wrong in this program? It's crashing immediately
> >> after the "before" line, using Borland C++ Builder 6 and
> >> numpy-1.0.3.1.win32-py2.4.
> > You have to call
On 9/21/07, Alexander Schmolck <[EMAIL PROTECTED]> wrote:
>
> David Cournapeau <[EMAIL PROTECTED]> writes:
>
> > Alexander Schmolck wrote:
> >> "Charles R Harris" <[EMAIL PROTECTED]> writes:
> >>
> >>
> >>> The automatic handling of pointers for the default allocation type is
> also
> >>> convenien
On 9/6/07, Christopher Barker <[EMAIL PROTECTED]> wrote:
> Bill Spotz wrote:
> However, I'm beginning to have my doubts about valarrays. I'm reading:
>
> Josuttis, Nicolai M. 1999. "The C+= Standard Library: A Tutorial and
> Reference"
>
> It's 8 years old now, but he writes:
>
> "The valarray clas
I'm not subscribed to the main Python list, so I'll just ask here.
It looks like the protocol doesn't support any floating point image formats,
judging from the big table of formats in the PEP. These are becoming more
important these days in computer graphics as a way to pass around high
dynamic
Except last I checked numpy.linalg doesn't have an efficient method for
retrieving only a few PCA components.
So yeh, you can do PCA but it will be *really* slow on most of the types of
problems that PCA is usually used for.
You need something like an ARPACK wrapper, which I think they have in the
The SMB *client* is installed by default in ubuntu.
You have to add the smb server separately using apt-get or the
synaptic package manager.
sudo apt-get install samba
After you install the smb server, go to System->Administration->Shared
Folders and add a shared folder.
Then from a console run
For those who are not aware, I have just discovered that the graphics
performance of VMWare Player is *MUCH* better than that of VMWare
Server. The latter is apparently optimized for disconnected headless
operation and access via a network, and so it uses some heavyweight
remote protocol for all g
There is a scipy.sparse package but it seems to be fairly limited currently.
Anyway there's definitely nothing like MATLAB's ability to change a
matrix to sparse and still use most of the algorithms on it.
Good sparse support vs. not so much sparse support should probably be
added to the big featur
No, there's a link in the middle of the page that says "ALSO available
for AMD 64bit", but the link you're looking for is in the upper right
corner of the page, and is for Intel 32:
http://www.vmware.com/vmtn/appliances/directory/scripts/va-stats/appliance-redirect.php?nid=595&target=http%3A%2F%2Fi
On 5/29/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> It appears that the free VMware player can't just read an iso. Where
> can I get a good Ubuntu virtual appliance?
The 'image' you're looking for is not an iso, it's a special VMWare image.
Try this one:
http://www.vmware.com/vmtn/appliances/dir
Great. Thanks!
Is there a plan to expose that as numpy.iinfo?
--bb
On 5/23/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > Is there a way to obtain the equivalent of MAX_INT for the integral
> > types numpy knows about?
> >
> > I know about n
Is there a way to obtain the equivalent of MAX_INT for the integral
types numpy knows about?
I know about numpy.finfo for the floating point types, but is there
anything like that for integral types?
Thanks,
--Bill
___
Numpy-discussion mailing list
Nump
On 5/17/07, David M. Cooke <[EMAIL PROTECTED]> wrote:
On Wed, May 16, 2007 at 09:03:43PM -0400, Anne Archibald wrote:
> Hi,
>
> Numpy has a max() function. It takes an array, and possibly some extra
> arguments (axis and default). Unfortunately, this means that
>
> >>> numpy.max(-1.3,2,7)
> -1.3
On 5/17/07, Anne Archibald <[EMAIL PROTECTED]> wrote:
Hi,
Numpy has a max() function. It takes an array, and possibly some extra
arguments (axis and default). Unfortunately, this means that
>>> numpy.max(-1.3,2,7)
-1.3
This can lead to surprising bugs in code that either explicitly
expects it
On 5/7/07, dmitrey <[EMAIL PROTECTED]> wrote:
> hi all,
> I have some troubles with Python2.5+matplotlib, so now I'm using
> Python2.4.3. I failed to compile both numpy1.0.1 and 1.0.2
> (Mandrake2007) so currently I'm using 1.0b.
> Howto check if numpy.array instances x and y are equal? (i.e. all
>
On 4/29/07, Benjamin Thyreau <[EMAIL PROTECTED]> wrote:
> Le Samedi 28 Avril 2007 20:03, Simon Berube a écrit:
> > (...)
> > On the other hand, if you are more interested in small
> > projects where speed of development is more important than long term
> > sustainability of the code Matlab is prob
It's not on the matlab page simpy because numpy.tile didn't exist when
the page was created. It should be fixed. But repmat is still there
in numpy.matlib (I think that was what it was called.)
--bb
On 4/30/07, dmitrey <[EMAIL PROTECTED]> wrote:
> if it was excluded for any reasons, correspondin
On 4/26/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Sturla Molden wrote:
> > On 4/25/2007 8:34 PM, Robert Kern wrote:
> >
> >> The things that I get annoyed with every time I have to read some Matlab
> >> code
> >> are the lack of namespaces and first-class function objects.
> >
> > Matlab does h
On 4/21/07, Dennis Cooke <[EMAIL PROTECTED]> wrote:
> I'm an ex-Matlab user trying to come up to speed with python and numpy.
Howdy. First, I hope you've checked out the page:
http://www.scipy.org/NumPy_for_Matlab_Users
> I'm
> confused on how to use the Numpy functions nonzero() and where().
Easy!
a[b==i]
--bb
On 4/24/07, Tommy Grav <[EMAIL PROTECTED]> wrote:
> I have two arrays:
>
> a = numpy.array([0,1,2,3,4,5,6,7,8,9])
> b = numpy.array([0,0,1,1,2,2,0,1,2,3])
>
> I would like to get the part of a that corresponds
> to where b is equal to i.
>
> For example:
>
> i = 0 => ([0,1,6])
On 4/22/07, Travis Oliphant <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > What's the right way to make a new numpy array that's a copy of some C data?
> >
> What do you mean by /copies/ the void * data pointer for you? Do you
> mean the API would
>
faces problemes between foreign object codes. SWIG parses a prett
> > good deal of C++, and is aware of classes (template is another matter,
> > obviously). numpy sources contain swig code to process automatically
> > numpy arrays (that is convert C representation of a numpy array
What's the right way to make a new numpy array that's a copy of some C data?
There doesn't seem to be any API like PyArray_NewFromDescr that
/copies/ the void*data pointer for you. Do I have to write my own
loops for this? I can do that, it just seems like it should be a
library function already
Be sure to check out the numpy examples page too.
http://www.scipy.org/Numpy_Example_List
Always a good resource if you're not sure how to call a particular command.
--bb
On 4/18/07, Miquel Poch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've found the next expression write it in Matlab,
>
> Rtx
Oops. Looks like I forgot to attach the test program that generated
that output so you can tell what dist2g actually does.
Funny thing is -- despite being written in C, hypot doesn't actually
win any of the test cases for which it's applicable.
--bb
On 4/17/07, Bill Baxter <[EM
in place sqrt
npy.sqrt(d,d)
return d
All of this assumes 'C' contiguous data. All bets are off if you have
non-contiguous or 'F' ordered data. And maybe if x and y have very
different numbers of points.
--bb
On 4/17/07, Keir Mierle <[EMAIL PROTECTED]>
On 4/14/07, Hugo <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > On 4/14/07, Alan Isaac <[EMAIL PROTECTED]> wrote:
> >>> On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote:
> >>>> how do I find the index of the minimum value of an numpy
>
On 4/14/07, Alan Isaac <[EMAIL PROTECTED]> wrote:
> > On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote:
> >> how do I find the index of the minimum value of an numpy
> >> array? Example a = array([1.,2.,0.4,3.]) I want the i=2
> >> since a[i] = 0.4 is the smallest value in a.
>
>
> On Fri, 13 Apr
I think someone posted some timings about this before but I don't recall.
The task is to compute the matrix D from two sets of vectors x (M,d)
and y (N,d).
The output should be D where D[i,j] is norm(x[i]-y[j])
The Matlab NetLab toolkit uses something like this to compute it:
d2 = (x*x).sum
On 4/12/07, Christopher Barker <[EMAIL PROTECTED]> wrote:
>
>
> Bill Baxter wrote:
>
> > But maybe that's pretty much what may_share_memory does?
>
> I think so. Travis added it after a discussion much like this one on the
> list.
Must be pretty recent.
On 4/12/07, Matthew Koichi Grimes <[EMAIL PROTECTED]> wrote:
> It's better than nothing. I basically want some sanity-check assert code
> that can assert that some arrays are in fact sub-arrays of another
> array. Your OWNDATA suggestion meets me halfway by allowing me to check
> that these sub-arr
I'm pretty sure dstack([x,y]) is what you're after.
--bb
On 4/10/07, mark <[EMAIL PROTECTED]> wrote:
> Hello list -
>
> I want to combine two arrays into one, and I cannot find a clean way
> to do it.
>
> I have the following two arrays:
>
> >>> x = array([[1, 2, 3],
>[4, 5, 6]])
On 4/9/07, Matt Knox <[EMAIL PROTECTED]> wrote:
> Andrew Straw astraw.com> writes:
> > >>> Is there any place on the Wiki that lists all the known software that
> > >>> uses Numpy in some way?
> > >>>
> > >
> > Great idea. I renamed the page to http://www.scipy.org/Projects so
> > Numpy-only users
On 4/4/07, Andy Cheesman <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> I was wondering if people could give me a pointer or two upon the
> efficient identification of neighbouring sites for a given point upon a
> numpy array which has periodic conditions.
> Suggestions upon the web I've seen seem to
; Maybe the projects should be in categories:
> - open source
> - commercial (?)
> - papers
> - ??
>
> -Sebastian
>
>
>
>
> On 4/4/07, Bill Baxter <[EMAIL PROTECTED]> wrote:
> > On 4/4/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> &
On 4/5/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > On 4/5/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> >> Bill Baxter wrote:
> >>> Ok, I got another hopefully easy question:
> >>>
> >>> Why this:
> >&g
On 4/5/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > Ok, I got another hopefully easy question:
> >
> > Why this:
> > class Point(object):
> > ...
> >
> > Instead of the style that's used in the Python tu
Ok, I got another hopefully easy question:
Why this:
class Point(object):
...
Instead of the style that's used in the Python tutorial in the
'classes' chapter:
class Point:
...
--bb
On 4/5/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Sebastian Haase wrote:
>
> > OK, b
On 4/4/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > Is there any place on the Wiki that lists all the known software that
> > uses Numpy in some way?
> >
>> > It would be nice to start collecting such a list if there isn't one
&g
Is there any place on the Wiki that lists all the known software that
uses Numpy in some way?
I just started playing with the Inkscape vector drawing progam. It
implements extensions using python, and I noticed that one of the
extensions in the latest release uses numpy (and not Numeric or
Numarr
What's the best way of assembling a big matrix from parts?
I'm using lagrange multipliers to enforce constraints and this kind of
matrix comes up a lot:
[[ K, G],
[ G.T , 0]]
In matlab you can use the syntax
[K G; G' zeros(nc)]
In numpy I'm using
vstack([ hstack([ K,G ]), hstack([ G.T,
On 3/31/07, Pierre GM <[EMAIL PROTECTED]> wrote:
>
> > I think you'll want to add the copy=False arg if you go that route, or
> > else you'll end up with something that's much slower than atleast_1d
> > for any array that gets passed in. :-)
>
> Yep indeed. We can also add the subok=True flag.
>
>
On 3/31/07, P GM <[EMAIL PROTECTED]> wrote:
> Actually, there's even faster than that:
>
> a = 3
> a = array(a, ndmin=1)
>
>
> atleast_1d is nothing but a wrapper function, that works best when used with
> several inputs. When using only one array as inputs, the trick above should
> be more appropr
atleast_1d will do the trick
In [11]: a = 3
In [12]: a = atleast_1d(a)
In [13]: shape(a)
Out[13]: (1,)
In [14]: a.shape # also works ;-)
Out[14]: (1,)
In [15]: a[0]
Out[15]: 3
--bb
On 3/30/07, Mark Bakker <[EMAIL PROTECTED]> wrote:
> Hello list -
>
> I have a function that normally accepts an
On 3/30/07, Timothy Hochberg <[EMAIL PROTECTED]> wrote:
>
>
> On 3/29/07, Bill Baxter <[EMAIL PROTECTED]> wrote:
> > On 3/30/07, Timothy Hochberg <[EMAIL PROTECTED]> wrote:
> > > Note, however that you can't (for instance) multiply column vector
On 3/30/07, Timothy Hochberg <[EMAIL PROTECTED]> wrote:
> Note, however that you can't (for instance) multiply column vector with
> a row vector:
>
> >>> (c)(r)
> Traceback (most recent call last):
> ...
> TypeError: Cannot matrix multiply columns with anything
>
That should be allowed. (N,1)*(
On 3/27/07, Alan Isaac <[EMAIL PROTECTED]> wrote:
> > On 3/27/07, Alan Isaac <[EMAIL PROTECTED]> wrote:
> >> May I see a use case where the desired
> >> return when iterating through a matrix
> >> is rows as matrices? That has never
> >> been
On 3/27/07, Alan Isaac <[EMAIL PROTECTED]> wrote:
> May I see a use case where the desired
> return when iterating through a matrix
> is rows as matrices? That has never
> been what I wanted.
If you use a row vector convention it make plenty of sense.
AllMyPoints = mat(rand(100,2)) # 100 two-d p
;
> >> I mean really, does this not "feel" wrong? ::
>
> >> >>> for item in x: print item.__repr__()
> >> ...
> >> matrix([[1, 2]])
> >> matrix([[3, 4]])
>
>
> On Mon, 26 Mar 2007, Bill Baxter apparently wrote
On 3/26/07, Charles R Harris <[EMAIL PROTECTED]> wrote:
>
> What might work better is simply some sort of sign that causes a function to
> be parsed as infix, x @dot y for instance, although Python already uses @
> for other things. I don't know what symbols are left unused at this point,
> maybe !
On 3/26/07, Colin J. Williams <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > This may sound silly, but I really think seeing all those brackets is
> > what makes it feel wrong. Matlab's output doesn't put it in your
> > face that your 4 is really a matr
On 3/26/07, Steven H. Rogers <[EMAIL PROTECTED]> wrote:
> Joe Harrington wrote:
> >
> > On the other hand, Python, IDL, and Matlab are attractive to us mainly
> > because their syntaxes allow us to see the math, understand it on
> > inspection, and verify its correctness. The math we write in thes
On 3/26/07, Alan G Isaac <[EMAIL PROTECTED]> wrote:
> > Em Dom, 2007-03-25 às 13:07 -0400, Alan G Isaac escreveu:
> >> >>> x[1]
> >> matrix([[1, 0]])
> >> feels wrong. (Similarly when iterating across rows.)
>
>
> On Sun, 25 Mar 2007, Paulo Jose da Silva e Silva apparently wrote:
> > I thi
On 3/25/07, Colin J. Williams <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> > On 3/25/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> >> Bill Baxter wrote:
> >
> >> I don't know. Given our previous history with convenience functions with
>
On 3/25/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> I don't know. Given our previous history with convenience functions with
> different calling semantics (anyone remember rand()?), I think it probably
> will
> confuse some people.
>
>
On 3/25/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
>
> > I think it's fine for filter()/reduce()/map() to be taken out of
> > builtins and moved to a standard module, but it's not clear that
> > that's what they're going to do
On 3/25/07, Alan G Isaac <[EMAIL PROTECTED]> wrote:
> On Sun, 25 Mar 2007, Bill Baxter apparently wrote:
> > So if one just
> > changes the example to
> > reduce(lambda s, a: s * a.myattr, data, 1)
> > How does one write that in a simplified way using generator
&
On 3/25/07, Steven H. Rogers <[EMAIL PROTECTED]> wrote:
> The generator expression PEP doesn't say this, but the Python 3000
> planning PEP (http://www.python.org/dev/peps/pep-3100/) has map() and
> filter() on the 'to-be-removed' list with a parenthetic comment that
> they can stay. Removal of re
On 3/25/07, Perry Greenfield <[EMAIL PROTECTED]> wrote:
>
> On Mar 24, 2007, at 2:52 PM, Bill Baxter wrote:
>
> > On 3/24/07, Steven H. Rogers <[EMAIL PROTECTED]> wrote:
> >> Anne Archibald wrote:
> >>>
> >>> P.S. reduce isn't ev
On 3/24/07, Anne Archibald <[EMAIL PROTECTED]> wrote:
> On 24/03/07, Bill Baxter <[EMAIL PROTECTED]> wrote:
>
> > Nice, but how does that fare on things like mdot(a,(b,c),d) ? I'm
> > pretty sure it doesn't handle it.
> > I think an mdot that c
On 3/24/07, Steven H. Rogers <[EMAIL PROTECTED]> wrote:
> Anne Archibald wrote:
> >
> > P.S. reduce isn't even a numpy thing, it's one of python's
> > much-neglected lispy functions.
> >
>
> It looks like reduce(), map(), and filter() are going away for Python
> 3.0 since GvR believes that they are
On 3/24/07, Charles R Harris <[EMAIL PROTECTED]> wrote:
>
>
> On 3/23/07, Anne Archibald <[EMAIL PROTECTED]> wrote:
> > On 23/03/07, Charles R Harris <[EMAIL PROTECTED]> wrote:
> > > Anyone,
> > >
> > > What is the easiest way to detect in python/C if an object is a subclass
> of
> > > ndarray?
> >
On 3/24/07, Anne Archibald <[EMAIL PROTECTED]> wrote:
> On 24/03/07, Bill Baxter <[EMAIL PROTECTED]> wrote:
> > I mentioned in another thread Travis started on the scipy list that I
> > would find it useful if there were a function like dot() that could
> > m
I mentioned in another thread Travis started on the scipy list that I
would find it useful if there were a function like dot() that could
multiply more than just two things.
Here's a sample implementation called 'mdot'.
mdot(a,b,c,d) ==> dot(dot(dot(a,b),c),d)
mdot(a,(b,c),d) ==> dot(dot(a,dot(b,
On 3/24/07, Sebastian Haase <[EMAIL PROTECTED]> wrote:
> >
> > Then of course, there's r_ and c_:
> >
> > c = numpy.c_[a,b]
> >
> > c = numpy.r_[a[None],b[None]].T
> >
> > --bb
> So,
> None is the same as newaxis - right?
Yes, newaxis is None. None is newaxis. Same thing. I just don't see
much
On 3/23/07, Eric Firing <[EMAIL PROTECTED]> wrote:
> Sebastian Haase wrote:
> > On 3/22/07, Stefan van der Walt <[EMAIL PROTECTED]> wrote:
> >> On Thu, Mar 22, 2007 at 08:13:22PM -0400, Brian Blais wrote:
> >>> Hello,
> >>>
> >>> I'd like to concatenate a couple of 1D arrays to make it a 2D array,
Try column_stack,
and also try the "See also" parts of the Numpy Examples List. very
handy for finding things like this.
http://www.scipy.org/Numpy_Example_List
--bb
On 3/23/07, Brian Blais <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'd like to concatenate a couple of 1D arrays to make it a 2D arra
On 3/22/07, Stefan van der Walt <[EMAIL PROTECTED]> wrote:
> On Wed, Mar 21, 2007 at 02:59:06PM -0500, eric jones wrote:
> > Just looked at this... Now that is just cool.
> >
> > I'd say it should be part of Numpy.
>
> Very useful! A file cache would be handy, and can be implemented
> using the c
On 3/19/07, Bill Baxter <[EMAIL PROTECTED]> wrote:
> I wrote a little python module to go fetch the Numpy examples from the
> scipy wiki page, parse them, and print out entries.
>
> Is there a good place on the wiki for this?
> It didn't really seem right in the cookbook
On 3/20/07, Christian <[EMAIL PROTECTED]> wrote:
> Bill Baxter wrote:
> I found out that my version of matplotlib (0.87.7) does not know all methods
> that ezplot is expecting to be known.
Aha. Thanks for diagnosing the problem. Should be fixed in the
latest ezplot I just u
1 - 100 of 112 matches
Mail list logo