[Numpy-discussion] Re: Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy

2006-06-01 Thread Robert Kern
') m(None, 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1)') '4.1.1' I have also the old g77 compiler installed (g77-3.4.6). Is there a way to force numpy/scipy to use it? Sure. python setup.py config_fc --fcompiler=gnu build_src build_clib build_ext build -- Robert Kern I have come to believe

[Numpy-discussion] Re: What am I missing about concatenate?

2006-06-01 Thread Robert Kern
),(3,4))).reshape(2,2) array([[1, 2], [3, 4]]) Is it because the arrays I'm putting together are rank-1? Yes. Look at vstack() (and also its friends hstack(), dstack() and column_stack() for completeness). -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] Free SciPy 2006 porting service

2006-06-02 Thread Robert Kern
. No, that isn't what he meant. He wants to help projects that are currently using Numeric and numarray convert to numpy. In any case, ARPACK certainly won't go into numpy. It might go into scipy if you are willing to contribute wrappers for it. -- Robert Kern I have come to believe that the whole

Re: [Numpy-discussion] rand argument question

2006-06-02 Thread Robert Kern
Alan G Isaac wrote: On Fri, 02 Jun 2006, Robert Kern apparently wrote: Changing the API of rand() and randn() doesn't solve any problem. Removing them might. I think this is too blunt an argument. For example, use of the old interface might issue a deprecation warning. This would make

Re: [Numpy-discussion] rand argument question

2006-06-02 Thread Robert Kern
Alan G Isaac wrote: On Fri, 02 Jun 2006, Robert Kern apparently wrote: My point is that there is no need to change rand() and randn() to the new interface. The new interface is already there: random.random() and random.standard_normal(). Yes of course; that has always been your point

Re: [Numpy-discussion] Random number generators.

2006-06-04 Thread Robert Kern
.* functions that alias the methods on the default RandomState object. Code that needs customizable PRNGs should be taking a RandomState object instead of relying on the function-alike aliases. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Numpy-discussion] byte swap in place

2006-06-06 Thread Robert Kern
? If the latter: a = arange(5) a.dtype dtype('i4') a.dtype = dtype('i4') a array([ 0, 16777216, 33554432, 50331648, 67108864]) -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though

Re: [Numpy-discussion] speed of numpy vs matlab on dot product

2006-06-10 Thread Robert Kern
you what dynamic libraries it is linked against. PS. I first sent this to the scipy mailing list, but it didnt seem to make it there. That's okay. This is actually the right place. All of the functions you used are numpy functions, not scipy. -- Robert Kern I have come to believe

Re: [Numpy-discussion] Any Numeric or numarray users on this list?

2006-06-13 Thread Robert Kern
good, so I really don't want to put them back into numpy. It should be easy to roll out a separate RNG module that simply uses numpy instead of Numeric, though. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad

Re: [Numpy-discussion] Atlas missing dgeev

2006-06-13 Thread Robert Kern
for instructions: http://math-atlas.sourceforge.net/errata.html#completelp -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Segfault with simplest operation on extension module using numpy

2006-06-16 Thread Robert Kern
extension. PyMODINIT_FUNC initDFALG(void) { (void) Py_InitModule(DFALG, DFALGMethods); } You need to call import_array() in this function. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

Re: [Numpy-discussion] Recarray attributes writeable

2006-06-16 Thread Robert Kern
not show up. I can see your 3rd try now. Possibly the others will be showing up, too. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Distance Matrix speed

2006-06-17 Thread Robert Kern
Alex Cannon wrote: How about this? def d5(): return add.outer(sum(A*A, axis=1), sum(B*B, axis=1)) - \ 2.*dot(A, transpose(B)) You might lose some precision with that approach, so the OP should compare results and timings to look at the tradeoffs. -- Robert

Re: [Numpy-discussion] Element-by-element matrix multiplication

2006-06-21 Thread Robert Kern
permission. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing

Re: [Numpy-discussion] How do I seed the radom number generator?

2006-06-22 Thread Robert Kern
() if you must control code that uses the global rand() and randn() functions and you can't modify it. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth

Re: [Numpy-discussion] matlab translation

2006-06-23 Thread Robert Kern
THAT difficult to write, gets an automatic, Show me, from me. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco Using Tomcat

[Numpy-discussion] Moving this mailing list to scipy.org

2006-06-23 Thread Robert Kern
start moving the list. Thank you. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco Using Tomcat but need to do more? Need

Re: [Numpy-discussion] logical_and operator, , is missing?

2006-06-24 Thread Robert Kern
Eric Firing wrote: Robert Kern wrote: Eric Firing wrote: It seems that the logical operators || and , corresponding to logical_or and logical_and are missing; one can do z = logical_and(x,y) but not z = x y Is there an inherent reason, or is this a bug? Python does not have

Re: [Numpy-discussion] fread codes versus numpy types

2006-06-28 Thread Robert Kern
. Please report such cases on the Trac: http://projects.scipy.org/scipy/scipy -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-06-30 Thread Robert Kern
probably just get rid of the defaults all together and make the user choose. My preferred solution is to add class methods to the scalar types rather than screw up compatibility. In [1]: float64.ones(10) -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-07-01 Thread Robert Kern
suitability. None at all. I have nightmares about it every time I need to rebuild VTK. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-07-01 Thread Robert Kern
is the standard for Python packages. I'm happy to see distutils go away in favor of something better, but that something better needs to be actively promoted as *the* replacement for distutils for *all* Python packages, not just numpy. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] unique() should return a sorted array

2006-07-02 Thread Robert Kern
. If you need more specific details about how the hash tables are implemented, the source (Object/dictobject.c)is the best place for them. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

Re: [Numpy-discussion] (no subject)

2006-07-05 Thread Robert Kern
[EMAIL PROTECTED] wrote: Hi, how could i get the name of an array in a string ? (info command ?!) You can't. http://mail.python.org/pipermail/python-list/2005-June/286574.html -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Numpy-discussion] .T Transpose shortcut for arrays again

2006-07-06 Thread Robert Kern
arrays are often used for linear algebra that linear algebra assumptions should be built in to the core array type. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: [Numpy-discussion] .T Transpose shortcut for arrays again

2006-07-06 Thread Robert Kern
Bill Baxter wrote: Robert Kern wrote: Like Sasha, I'm mildly opposed to .T (as a synonym for .transpose()) and much more opposed to the rest (including .T being a synonym for .swapaxes(-2, -1)). It's not often that a proposal carries with it its own slippery-slope

Re: [Numpy-discussion] .T Transpose shortcut for arrays again

2006-07-06 Thread Robert Kern
Bill Baxter wrote: On 7/7/06, *Robert Kern* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Bill Baxter wrote: Robert Kern wrote: [snip] I don't think that just because arrays are often used for linear algebra that linear algebra

Re: [Numpy-discussion] Call for a vote on .M .A .T .H attributes

2006-07-06 Thread Robert Kern
the temptation to guess. 2) .H returns .T.conj() -1 3) .M returns matrix version of array -1 4) .A returns basearray (useful for sub-classes). -1 -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] Numpy subversion compatibility with Scipy release?

2006-07-07 Thread Robert Kern
checkout of scipy will probably be fine. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco Using Tomcat but need to do more? Need

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-08 Thread Robert Kern
and randn (at least from the toplevel namespace) and promote the use of random_sample and standard_normal which already follow the tuple convention. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-08 Thread Robert Kern
-- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Using Tomcat

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-08 Thread Robert Kern
Pau Gargallo wrote: On 7/8/06, Robert Kern [EMAIL PROTECTED] wrote: Ed Schofield wrote: * Should numpy.rand and numpy.randn accept sequences of dimensions as arguments, like rand((3,3)), as an alternative to rand(3,3)? * Should rand((3,3)) and randn((3,3)) continue to raise a TypeError

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-09 Thread Robert Kern
Ed Schofield wrote: On 09/07/2006, at 12:04 AM, Robert Kern wrote: I would like to ask about the purpose of calling for a vote, here. What authority do you intend the result to have? If you are just asking for a straw poll of opinions from the list to inform Travis' decision, do you

Re: [Numpy-discussion] NumPy beta release plan

2006-07-09 Thread Robert Kern
Christian Kristukat wrote: Robert Kern robert.kern at gmail.com writes: I believe that Debian recently changed its configuration to default to /usr/local (for good reason!). Perhaps that is causing what you see. I just found out that this is feature/bug of opensuse 10.1. I'm beginning

Re: [Numpy-discussion] Converting a list

2006-07-10 Thread Robert Kern
. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Using

Re: [Numpy-discussion] Number of digits

2006-07-10 Thread Robert Kern
with numpy.set_printoptions(). -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Number of digits

2006-07-10 Thread Robert Kern
David Douard wrote: On Mon, Jul 10, 2006 at 08:46:33AM -0500, Robert Kern wrote: Tim Hochberg wrote: Nils Wagner wrote: Hi all, how can I increase the number of digits in the output of str(.) ? You can't as far as I know. For floats, you can use %.nf. For example: %.13f

Re: [Numpy-discussion] Converting a list

2006-07-10 Thread Robert Kern
Pierre GM wrote: On Monday 10 July 2006 05:57, Robert Kern wrote: Nils Wagner wrote: Hi all, I have a list consisting of arrays of different size ... The error message is unhelpful, certainly, but the *fact* that an exception is raised is not a bug. Attempting to build an array from

Re: [Numpy-discussion] unique() should return a sorted array

2006-07-11 Thread Robert Kern
as to keep things general, it makes sense to also avoid sorting as well Sasha's slick algorithm not withstanding. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-11 Thread Robert Kern
been the configuration from the very beginning. Okay, now I think I've officially spent more time on this email than I ever did using or implementing rand(). -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] RandomArray module

2006-07-13 Thread Robert Kern
and anything from NR. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Finding indices for all rows which contain nan (or anything else)

2006-07-13 Thread Robert Kern
. (Untested) def is_row_nan(a): return numpy.isnan(a).any(axis=-1) -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] fast way of doing cross-multiplications ?

2006-07-18 Thread Robert Kern
and weave. http://www.scipy.org/SciPy2006 /teaser -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] What to do about numarray extension modules?

2006-07-18 Thread Robert Kern
enough as it is. I'm -0 on making a standalone package. The time would be better spent on making sure that scipy subpackages can be downloaded, built and installed individually. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Numpy-discussion] how to get an array with varying poisson distribution

2006-07-24 Thread Robert Kern
reimplementing the distribution functions as ufuncs, but that's a hefty chunk of work that won't happen for 1.0. I'm afraid that, for now, you're stuck with iterating over the values. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Numpy-discussion] I've created a 1.0b1 release tag in SVN

2006-07-26 Thread Robert Kern
until the actual release of 2.x. Then a 2.x branch is created for maintainings 2.x.y and the trunk develops for 2.x+1. We aren't going to be working on 1.1 until 1.0 is actually out the door. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] uniform() regression(?) in svn

2006-07-27 Thread Robert Kern
to broadcast over their arguments. That's probably the source of the regression. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Bug in memmap/python allocation code?

2006-07-27 Thread Robert Kern
/numpy numpy got me what I wanted. Grr. That means developers are not merging changes appropriately. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth

Re: [Numpy-discussion] fixing diag() for matrices

2006-07-27 Thread Robert Kern
accept matrix objects; it's just not what you want. I don't want to introduce a backwards-compatibility-breaking special case to the function. Special cases aren't special enough to break the rules. Different functionality should go into a different function. -- Robert Kern I have come

Re: [Numpy-discussion] fixing diag() for matrices

2006-07-28 Thread Robert Kern
Sven Schreiber wrote: Robert Kern schrieb: Sven Schreiber wrote: That would be fine with me. However, I'd like to point out that after some bug-squashing currently all numpy functions deal with numpy-matrices correctly, afaik. The current behavior of numpy.diag could be viewed as a violation

Re: [Numpy-discussion] fixing diag() for matrices

2006-07-28 Thread Robert Kern
? It isn't. Look at numpy/matlib.py -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Egg support

2006-07-31 Thread Robert Kern
. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Take Surveys

Re: [Numpy-discussion] numpy vs numarray

2006-07-31 Thread Robert Kern
Louis Cordier wrote: Hmmm, I think people are spreading fud (lower case)... http://media.libsyn.com/media/awaretek/Python411_060530_Numeric.mp3 Can you give us a synopsis? or point us to when exactly in the clip we're supposed to listen? -- Robert Kern I have come to believe that the whole

Re: [Numpy-discussion] Reverting changes on Wiki, contacting users

2006-08-02 Thread Robert Kern
it was at that revision. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] bug tracker to cc email address by default

2006-08-03 Thread Robert Kern
/numpy/settings Otherwise, subscribe to the numpy-tickets email list, and you will get notifications of all tickets. http://www.scipy.org/Mailing_Lists -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] NumPy documentation

2006-08-06 Thread Robert Kern
David Grant wrote: What about the documentation that already exists here: http://www.tramy.us/ Essentially every function and class needs a docstring whether or not there is a manual available. Neither one invalidates the need for the other. -- Robert Kern I have come to believe

Re: [Numpy-discussion] divmod issue

2006-08-06 Thread Robert Kern
. Should I be forced to cast that to an int before calling divmod with it? I don't see an exception with a more recent numpy (r2881, to be precise). Please try a later version. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Numpy-discussion] numpy and unittests

2006-08-07 Thread Robert Kern
almost certainly wanted to test that *all* of the values were True. This is why we now raise an exception; lots of people got tripped up over that. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] NumPy, shared libraries and ctypes

2006-08-08 Thread Robert Kern
{modulename} problem, either. It's a problem that occurs at build-time, not import-time. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] NumPy, shared libraries and ctypes

2006-08-08 Thread Robert Kern
further yet. Perhaps that's a better way to go than bending distutils to your will? Well, wrapper he's writing destined for scipy, so python setup.py build must work. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad

Re: [Numpy-discussion] scipy_distutils

2006-08-15 Thread Robert Kern
. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Using Tomcat

Re: [Numpy-discussion] Atempt to build numpy-1.0b2 fail on distutils.ccompiler

2006-08-16 Thread Robert Kern
Linux distributions, separates distutils from the rest of the standard library in a separate package which you will need to install. It will be called something like python-dev or python-devel. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] numpy.random.rand function doesn't take tuple

2006-08-21 Thread Robert Kern
let's not resurrect this argument. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] numpy.random.rand function doesn't take tuple

2006-08-21 Thread Robert Kern
David Grant wrote: Thanks everyone. My only question now is why there is random_sample and random. My guess is that one is there for compatibility with older releases and so I'm not bothered by it. Yes. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

Re: [Numpy-discussion] users point of view and ufuncs

2006-08-25 Thread Robert Kern
, 3], not [[[1]]]. http://mathworld.wolfram.com/TensorRank.html -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Deleting a row from a matrix

2006-08-25 Thread Robert Kern
a particular axis (default is axis=0 to match concatenate). Comments? I would drop appendto(). I also recommend leaving them as functions and not making methods from them. This will help prevent people from thinking that these modify the arrays in-place. -- Robert Kern I have come to believe

Re: [Numpy-discussion] [ANN] NumPy 1.0b4 now available

2006-08-26 Thread Robert Kern
', 'i4')]) In [6]: a.dtype.names Out[6]: ('float', 'int') -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] [ANN] NumPy 1.0b4 now available

2006-08-26 Thread Robert Kern
Les Schaffer wrote: 3. near zero docstrings for this module, hard to see how the new records works. http://www.scipy.org/RecordArrays -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

Re: [Numpy-discussion] [ANN] NumPy 1.0b4 now available

2006-08-26 Thread Robert Kern
Les Schaffer wrote: i'll pitch in some time to add docstrings, if i know they will be used. Of course they will. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: [Numpy-discussion] [ANN] NumPy 1.0b4 now available

2006-08-26 Thread Robert Kern
on their slides for their talks at the actual conference. Next year, sprints will come *after* the talks. Is the preferred approach, as Albert suggested, to submit documentation patches attached to tickets? Yes. -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] a**2 not executed as a*a if a.dtype = int32

2006-08-27 Thread Robert Kern
of lack of time, but assigning it to someone won't fix that. Let the dev team work out the assignment of tickets. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying

Re: [Numpy-discussion] ticket system does not like me ! - seems broken ...

2006-08-27 Thread Robert Kern
, what do you mean? -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] bad generator behaviour with sum

2006-08-27 Thread Robert Kern
devising a robust rule for when that happens. Consequently, I would like to avoid doing so. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto

Re: [Numpy-discussion] Is numpy supposed to support the buffer protocol?

2006-08-28 Thread Robert Kern
I.SetDataBuffer(buffer(some_array)) and it seems to work on OS X with Python 2.4, numpy 1.0b2 and wxMac 2.6.3.3 . -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: [Numpy-discussion] array indexing problem

2006-08-29 Thread Robert Kern
less so when you want to treat these arrays as matrices and row and column vectors. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Keyword added to searchsorted.

2006-09-02 Thread Robert Kern
Charles R Harris wrote: Hi all, I added the keyword side to the searchsorted method and functions. Thank you! Just the other day, I was wishing that we had such a thing. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Numpy-discussion] Problem with concatenate and object arrays

2006-09-03 Thread Robert Kern
numeric arrays, I think that difference is warranted. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Random number generators

2006-09-03 Thread Robert Kern
to proceed and help you navigate the current code, but I'm afraid I don't have much time to actually code. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth

Re: [Numpy-discussion] Random number generators

2006-09-03 Thread Robert Kern
) are broadcast against each other using the same rules as ufunc parameters. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Random number generators

2006-09-04 Thread Robert Kern
. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Using Tomcat

Re: [Numpy-discussion] Irregular arrays

2006-09-04 Thread Robert Kern
measurement. A sparse matrix is conceptually rectangular, so it does not fit the request at all. The question is whether numpy has such support; if not, is it planned. No, and no. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Numpy-discussion] ndarray.count() ?

2006-09-07 Thread Robert Kern
the already-enormous API of the ndarray object without much benefit. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] ndarray.count() ?

2006-09-07 Thread Robert Kern
SciPy and the Python random module. The Python randint includes the upper endpoint. The SciPy version excludes it. numpy.random.random_integers() includes the upper bound, if you like. numpy.random does not try to emulate the standard library's random module. -- Robert Kern I have come to believe

Re: [Numpy-discussion] ndarray.count() ?

2006-09-07 Thread Robert Kern
rex wrote: Robert Kern [EMAIL PROTECTED] [2006-09-07 16:35]: rex wrote: Charles R Harris [EMAIL PROTECTED] [2006-09-07 15:04]: I don't know about count, but you can gin up something like this In [78]: a = ran.randint(0,2, size=(10,)) In [79]: a Out[79]: array([0, 1, 0, 1, 1, 0, 0, 1, 1, 1

Re: [Numpy-discussion] recarray

2006-09-15 Thread Robert Kern
, usually with map(). -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] buggy buggy bugyy: format and casting ?

2006-09-15 Thread Robert Kern
. Could you give us a short piece of code that demonstrates the problem? You don't state what flaws you were working around before. Note that some of those functions in scipy are unavoidably implemented in double precision at the C/FORTRAN level. -- Robert Kern I have come to believe

Re: [Numpy-discussion] Resolution of tickets.

2006-09-19 Thread Robert Kern
in your case. I will fix that. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] please change mean to use dtype=float

2006-09-19 Thread Robert Kern
separately is a sensible and (partially) informative thing to do. Simply applying the formula for estimating variance for real numbers to complex numbers (i.e. change x to z) is a meaningless operation. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] please change mean to use dtype=float

2006-09-19 Thread Robert Kern
of arr. Double precision can't fix that. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] please change mean to use dtype=float

2006-09-20 Thread Robert Kern
Sebastian Haase wrote: Robert Kern wrote: Sebastian Haase wrote: I know that having too much knowledge of the details often makes one forget what the newcomers will do and expect. Please be more careful with such accusations. Repeated frequently, they can become quite insulting. I did

Re: [Numpy-discussion] please change mean to use dtype=float

2006-09-20 Thread Robert Kern
David M. Cooke wrote: On Wed, Sep 20, 2006 at 03:01:18AM -0500, Robert Kern wrote: Let me offer a third path: the algorithms used for .mean() and .var() are substandard. There are much better incremental algorithms that entirely avoid the need to accumulate such large (and therefore

Re: [Numpy-discussion] bug in oldnumeric module

2006-09-22 Thread Robert Kern
Scott Ransom wrote: argmin is currently defined as using the argmax method! Please check out the latest source from SVN. I fixed this a few days ago. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Numpy-discussion] Always using scientific notation to print

2006-09-22 Thread Robert Kern
them and then tell ndarray to use it for __str__ or __repr__ using numpy.set_string_function(). -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth

Re: [Numpy-discussion] Numpy RC1 build blows up

2006-09-25 Thread Robert Kern
anything else with gcc? -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] Negative values with unsigned data types problems

2006-09-29 Thread Robert Kern
Francesc Altet wrote: Hi, I'm writing this here because the numpy Trac seems down: {{{ Oops... Trac detected an internal error: The Trac Environment needs to be upgraded. Run trac-admin /home/scipy/trac/numpy upgrade }}} It's back up. -- Robert Kern I have come to believe

Re: [Numpy-discussion] Problem building from svn under cygwin

2006-09-29 Thread Robert Kern
in that case. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

[Numpy-discussion] Manually broadcasting arrays in Python

2006-10-03 Thread Robert Kern
Has anyone implemented an easier or more efficient way to broadcast arrays to a common shape at the Python level? I was hoping that the broadcast iterator would actually provide the broadcasted arrays, but it does not. I've attached my best pure-Python effort. -- Robert Kern I have come

Re: [Numpy-discussion] Hello and my first patch

2006-10-05 Thread Robert Kern
. Fleshing out the masked array and matrix classes would be similar, I imagine. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Numpy-discussion] zip safe egg?

2006-10-05 Thread Robert Kern
Bryce Hendrix wrote: Robert Kern wrote: It is not zip-safe if you want to compile against the headers. That keyword can't be added to the setup() call in the trunk's setup.py because numpy cannot depend on setuptools, at the moment. Adding the keyword does not break builds not using

Re: [Numpy-discussion] Hello and my first patch

2006-10-05 Thread Robert Kern
Greg Willden wrote: On 10/5/06, *Robert Kern* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greg Willden wrote: From my view as a newbie to numpy/scipy/matplotlib it isn't clear where I should look for what functionality. Matplotlib plots the spectrogram

  1   2   >