Re: [Numpy-discussion] indexing question

2010-06-21 Thread Robert Kern
On Mon, Jun 21, 2010 at 17:42, Neal Becker ndbeck...@gmail.com wrote: Robert Kern wrote: On Mon, Jun 21, 2010 at 14:01, Neal Becker ndbeck...@gmail.com wrote: Can I find an efficient way to do this? I have a 2d array, A, 80 rows by 880 columns. I have a vector, B, of length 80, with scalar

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Robert Kern
and how you built numpy? -- 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

Re: [Numpy-discussion] Numpy.linalg.eig oddity

2010-06-23 Thread Robert Kern
at 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. -- Umberto Eco ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Strange behavior of np.sinc

2010-06-26 Thread Robert Kern
to return values consistent w/ array input, except at 0.  Bug in code (failure at 0 if in a sequence) and in the doc (ndarray should be array_like)? Bug in both code and docs. There should be an x = np.asanyarray(x) before the rest of the code. -- Robert Kern I have come to believe that the whole

Re: [Numpy-discussion] BOF notes: Fernando's proposal: NumPy ndarray with named axes

2010-07-08 Thread Robert Kern
is concerned). This lets you label all of the axes in a multidimensional array. -- 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] BOF notes: Fernando's proposal: NumPy ndarray with named axes

2010-07-12 Thread Robert Kern
? Understanding both the similarities and differences is important because both are going to be living in the same ecosystem with overlapping niches. -- 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] HOWTO build NumPy without external math libs

2010-07-13 Thread Robert Kern
to ignore such libraries. Building redistributable binaries. -- 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] How to use decorator numpy.vectorize for methods in class

2010-07-16 Thread Robert Kern
with did not work import numpy class test:   �...@numpy.vectorize  #= Using decorator    def add(self,x,y):        return x+y numpy.vectorize does not work on methods, just functions. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] Crosstabulation

2010-07-17 Thread Robert Kern
common, albeit somewhat redundant, idiom meaning the gradient of an elevation 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] Numpy svn down

2010-07-17 Thread Robert Kern
On Sat, Jul 17, 2010 at 17:06, Charles R Harris charlesr.har...@gmail.com wrote: At the moment... Chuck I can svn up at the moment. -- 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] numpy for Python 3?

2010-07-19 Thread Robert Kern
On Mon, Jul 19, 2010 at 14:17, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 09:00, Robert Kern robert.k...@gmail.com wrote: On Mon, Jul 19, 2010 at 11:53, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 07:48, Robin robi...@gmail.com wrote: On Mon

Re: [Numpy-discussion] recarray slow?

2010-07-21 Thread Robert Kern
performance, but my examples may be missing some crucially important detail about your data that is causing your performance problems. -- 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] determinant of a scalar not handled

2010-07-27 Thread Robert Kern
. That said, I expect you will be running into this 1x1-scalar special case reasonably frequently in statsmodels. Writing a dwim_logdet() utility function there that does what you want is a perfectly reasonable thing to do. -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] determinant of a scalar not handled

2010-07-27 Thread Robert Kern
On Tue, Jul 27, 2010 at 11:36, Skipper Seabold jsseab...@gmail.com wrote: On Tue, Jul 27, 2010 at 12:00 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Jul 27, 2010 at 07:51, Skipper Seabold jsseab...@gmail.com wrote: On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac ais...@american.edu wrote

Re: [Numpy-discussion] Is there anyway to read raw binary file via pytable?

2010-07-28 Thread Robert Kern
had. Simply because I do not have doubled diskspace to covert all 10TB data into HDF5. Is there any way to let pytable read raw binary files or alternatively to package raw files into HDF5 format without change the files themselves.? No. -- Robert Kern I have come to believe that the whole

Re: [Numpy-discussion] ceil returns real ?

2010-07-28 Thread Robert Kern
would have to add it to all ufuncs. -- 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

Re: [Numpy-discussion] Is there anyway to read raw binary file via pytable?

2010-07-28 Thread Robert Kern
the compression of the data on disk, not the use of the HDF5 library. -- 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] 1.5 release schedule proposal

2010-07-28 Thread Robert Kern
be remembering the bug report from an EPD user (where we did put in a ziggurat 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.   -- Umberto Eco

Re: [Numpy-discussion] additions to random: innovative names vs. algorithm specification

2010-07-29 Thread Robert Kern
a keyword argument which you only expect to pass literals to, you should make multiple functions instead (Book of Guido, 7:42). It's worth noting that this MATLAB API is deprecated. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our

Re: [Numpy-discussion] additions to random: innovative names vs. algorithm specification

2010-07-29 Thread Robert Kern
On Thu, Jul 29, 2010 at 16:03, Alan G Isaac alan.is...@gmail.com wrote: On 7/29/2010 4:37 PM, Robert Kern wrote: this MATLAB API is deprecated The old API has been replaced by a constructor that still takes a string literal argument to determine the PRNG algorithm. See the bottom of http

Re: [Numpy-discussion] test errors in the trunk

2010-07-30 Thread Robert Kern
to both explicitly importing the submodule and importing * from the submodule. -- 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] additions to random: innovative names vs. algorithm specification

2010-07-30 Thread Robert Kern
it has a little bit more peer review to get through, but thanks for the pointer! That's probably the best motivation I've seen to do the refactoring of the numpy.random code to allow multiple core PRNGs. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] distutils issue - python 3.1 on windows

2010-08-02 Thread Robert Kern
. It may not matter inside numpy.distutils, but be wary of fixing things to use inspect elsewhere. It would be worth extracting the commonly-used pieces of inspect (and hacks like this) into an internal utility module that is fast to import. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] ndarray.resize that preserve view content ?

2010-08-04 Thread Robert Kern
with each other. Can you try to explain what you want in other words? -- 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.resize that preserve view content ?

2010-08-04 Thread Robert Kern
On Wed, Aug 4, 2010 at 10:31, Antoine Dechaume boole...@gmail.com wrote: Yes it is, but is there a way to do it in-place? No. -- 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] Making MATLAB and Python play nice

2010-08-20 Thread Robert Kern
visible at the links? -- 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

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 47, Issue 61

2010-08-21 Thread Robert Kern
On Sat, Aug 21, 2010 at 17:58, David Goldsmith d.l.goldsm...@gmail.com wrote: On Sat, Aug 21, 2010 at 10:00 AM, numpy-discussion-requ...@scipy.org wrote: Date: Fri, 20 Aug 2010 14:30:58 -0500 From: Robert Kern robert.k...@gmail.com Subject: Re: [Numpy-discussion] Making MATLAB and Python

Re: [Numpy-discussion] Boolean arrays

2010-08-27 Thread Robert Kern
: mask = np.zeros(ar.shape, dtype=bool) for good in valid: mask |= (ar == good) Wrap that up into a function and you're good to go. That's about as efficient as it gets unless if the valid array gets large. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

Re: [Numpy-discussion] Boolean arrays

2010-08-27 Thread Robert Kern
On Fri, Aug 27, 2010 at 15:21, Nathaniel Smith n...@pobox.com wrote: On Fri, Aug 27, 2010 at 1:17 PM, Robert Kern robert.k...@gmail.com wrote: But in any case, that would be very slow for large arrays since it would invoke a Python function call for every value in ar. Instead, iterate over

Re: [Numpy-discussion] numpy histogram normed=True (bug / confusing behavior)

2010-08-27 Thread Robert Kern
deprecation might break their workarounds silently. I admit it's a bit of a stretch, but conservativeness and coupled with the opportunity to make a desirable name change make this more attractive. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Numpy-discussion] bincount() optional length argument

2010-08-27 Thread Robert Kern
this length with values above this range being ignored, but it seems like the latter might be useful in more cases. minlength works for 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

Re: [Numpy-discussion] numpy histogram normed=True (bug / confusing behavior)

2010-08-28 Thread Robert Kern
On Sat, Aug 28, 2010 at 04:12, Zbyszek Szmek zbys...@in.waw.pl wrote: Hi, On Fri, Aug 27, 2010 at 06:43:26PM -0600, Charles R Harris wrote:    On Fri, Aug 27, 2010 at 2:47 PM, Robert Kern robert.k...@gmail.com    wrote:      On Fri, Aug 27, 2010 at 15:32, David Huard david.hu...@gmail.com

Re: [Numpy-discussion] test if two arrays share the same data

2010-09-05 Thread Robert Kern
. No, you really want may_share_memory(). -- 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] clip() with None as argument

2010-09-07 Thread Robert Kern
think we would accept a patch that interprets None to be the appropriate extreme bound given the input datatype. This will be tricky, though, since it must be done in C (PyArray_Clip in numpy/core/src/multiarray/calculation.c). -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] IEEE 754-2008 decimal floating point support

2010-09-08 Thread Robert Kern
On Wed, Sep 8, 2010 at 15:10, Michael Gilbert michael.s.gilb...@gmail.com wrote: On Wed, 8 Sep 2010 15:04:17 -0500, Robert Kern wrote: On Wed, Sep 8, 2010 at 14:44, Michael Gilbert michael.s.gilb...@gmail.com wrote: Just wanted to say that numpy object arrays + decimal solved all of my

Re: [Numpy-discussion] clip() with None as argument

2010-09-09 Thread Robert Kern
On Thu, Sep 9, 2010 at 05:05, Chris Ball ceb...@gmail.com wrote: Robert Kern robert.kern at gmail.com writes: On Wed, Sep 8, 2010 at 14:42, Chris Ball ceball at gmail.com wrote: Robert Kern robert.kern at gmail.com writes: ... a = numpy.array([1,2,3,4,5]) a.clip(2,None) array([2, 2

Re: [Numpy-discussion] distutils

2010-09-09 Thread Robert Kern
a lot of time for nothing. Any idea why this is happening? Not without an example that demonstrates the problem, no. Are you using numpy.distutils? If you are just using regular distutils, you may wish to ask on the distutils-sig list or python-list, instead. -- Robert Kern I have come to believe

Re: [Numpy-discussion] Inverting argsort(a, axis=0) to obtain column-wise ranks

2010-09-09 Thread Robert Kern
is also O(n*log(n)) because it uses an argsort(). Using two argsort()s won't change the O() complexity. O() often tells you very little. Time it with typical values and find out. Memory use is often the bottleneck. And sometimes, the real performance differences just don't matter. -- Robert Kern I

Re: [Numpy-discussion] [OT: MATLAB] Any way to globally make Matlab struct attributes Python-property-like

2010-09-13 Thread Robert Kern
On Mon, Sep 13, 2010 at 21:24, David Goldsmith d.l.goldsm...@gmail.com wrote: (Sorry for the OT post; I thought I'd get a more sympathetic response here than on the MATLAB lists.) ;) I'm sorry, but that's *really* off-topic. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] Can we freeze the subversion repository and move to github this week?

2010-09-15 Thread Robert Kern
contents: *.o *.a *.pyc *.swp *~ build *.pyo *.so *.pyd .gdb_history dist -- 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] buffer arg to ndarray

2010-09-17 Thread Robert Kern
[23]: read-only buffer for 0x52652c0, size -1, offset 0 at 0x5265380 -- 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] Question about masked arrays

2010-09-20 Thread Robert Kern
as expected on a masked array. Many other functions will not. -- 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] real and imag functions should produce errors for object arrays

2010-09-21 Thread Robert Kern
we define on numpy arrays can be done because we know the types and that object arrays subvert this. numpy can't, without excessive amounts of magic, always know a sensible thing to do with object arrays, so we implement the fast thing to do. -- Robert Kern I have come to believe that the whole

Re: [Numpy-discussion] real and imag functions should produce errors for object arrays

2010-09-21 Thread Robert Kern
On Tue, Sep 21, 2010 at 17:40, Pauli Virtanen p...@iki.fi wrote: Tue, 21 Sep 2010 17:28:08 -0500, Robert Kern wrote: [clip] *that* == return a complex number from .real What is the alternative? I'm personally happy with saying that many of the operations we define on numpy arrays can be done

Re: [Numpy-discussion] printable random seed ?

2010-09-22 Thread Robert Kern
a good way to  randomly generate an initial state? np.random.RandomState() will do the best thing on each platform. -- 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] searching binary data

2010-09-22 Thread Robert Kern
(using buffer=). But, how to then efficiently find a sequence? mmap objects have most of the usual string methods: [~] |2 f = open('./scratch/foo.py', 'r+b') [~] |4 m = mmap.mmap(f.fileno(), 0) [~] |6 m.find('import') 11 [~] |7 m[11:17] 'import' -- Robert Kern I have come to believe

Re: [Numpy-discussion] bug in f2py on Mac 10.5 ?

2008-03-06 Thread Robert Kern
-c --fcompiler=gnu95 ... -- 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

Re: [Numpy-discussion] numpy.distutils bug, fix, comments?

2008-03-08 Thread Robert Kern
to: setattr(_m, 'gen_lib_options', Any objections? If not I'll commit soon... I believe you are correct. -- 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] Create a numpy array from an array of a C structure

2008-03-09 Thread Robert Kern
, 12), ('high', double, 20), ('close', double, 28), ('vol', double, 36)]) -- 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] Will f2py ever be used in numpy ?

2008-03-09 Thread Robert Kern
will never be used to build any part of numpy itself because we will not include something that requires a FORTRAN compiler to build numpy. -- 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] Will f2py ever be used in numpy ?

2008-03-10 Thread Robert Kern
On Mon, Mar 10, 2008 at 1:49 AM, David Cournapeau [EMAIL PROTECTED] wrote: On Sun, 2008-03-09 at 23:11 -0500, Robert Kern wrote: Almost certainly f2py will never be used to build any part of numpy itself because we will not include something that requires a FORTRAN compiler to build

Re: [Numpy-discussion] Will f2py ever be used in numpy ?

2008-03-10 Thread Robert Kern
On Mon, Mar 10, 2008 at 3:45 AM, David Cournapeau [EMAIL PROTECTED] wrote: On Mon, 2008-03-10 at 02:11 -0500, Robert Kern wrote: Yes, but it's probably going to be easier to wrap whatever by hand than try to ensure that f2py bootstraps correctly, scons or no scons. Ok, thanks

Re: [Numpy-discussion] Generically Creating Intermediate Data Compatible with Either ndarray or MasledArray Types

2008-03-11 Thread Robert Kern
arrays of the same class and (possibly) shape as an existing array, but with a different dtype? dummy = numpy.ones(data.shape, dtype=bool).view(type(data)) -- 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.random.RandomState threadsafe?

2008-03-11 Thread Robert Kern
. It is possible that the GIL gets released during that call and that another thread can pick up execution then. However, even this should not be a problem as far as safety goes; no internal state is read or changed after the external call. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] Numpy and OpenMP

2008-03-15 Thread Robert Kern
if this result would be applicable to it. If you would like to try, we can certainly give you pointers as to where to start. -- 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] Numpy and OpenMP

2008-03-15 Thread Robert Kern
/branches/multicore/benchmarks/time_thread.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] Numpy and OpenMP

2008-03-17 Thread Robert Kern
if it remains optional). Also, maybe numexpr could benefit from this? Possibly. You can answer this definitively by writing the code to try it out. -- 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] Scipy to MyHDL!

2008-03-17 Thread Robert Kern
in a VHLL. -- 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 list Numpy

Re: [Numpy-discussion] View ND Homogeneous Record Array as (N+1)D Array?

2008-03-17 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 ___ Numpy-discussion mailing list Numpy

Re: [Numpy-discussion] Numpy and OpenMP

2008-03-17 Thread Robert Kern
that nothing. Please, by all means go for 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. -- Umberto Eco ___ Numpy

Re: [Numpy-discussion] how to build a series of arrays as I go?

2008-03-18 Thread Robert Kern
On Tue, Mar 18, 2008 at 4:25 AM, Chris Withers [EMAIL PROTECTED] wrote: Robert Kern wrote: Appending to a list is almost always better than growing an array by concatenation. If you have a real need for speed, though, there are a few tricks you can do at the expense of complexity. I

Re: [Numpy-discussion] Record Arrays and ctypes Interfacing

2008-03-18 Thread Robert Kern
shouldn't need any numpy headers. -- 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

Re: [Numpy-discussion] Correlate with small arrays

2008-03-19 Thread Robert Kern
to me that correlate usually beats the manual implementation, particularly if you don't measure the array() part, too. len(x)=1000 is the only size where the manual version seems to beat correlate on my machine. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

Re: [Numpy-discussion] Correlate with small arrays

2008-03-20 Thread Robert Kern
this is flawed logic, but if not I'm hoping someone has already done this? The function is PyArray_Correlate() in numpy/core/src/multiarraymodule.c. If you have suggestions for improving it, we're all ears. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] Floating-point support for MyHDL

2008-03-20 Thread Robert Kern
list, not here. http://myhdl.jandecaluwe.com/doku.php/mailing_list -- 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] Improving Docs on Wiki

2008-03-21 Thread Robert Kern
routines. http://www.scipy.org/sort. Knock yourself out. -- 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] Openmp support (was numpy's future (1.1 and beyond): which direction(s) ?)

2008-03-22 Thread Robert Kern
in without *any* modification. -- 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

Re: [Numpy-discussion] Openmp support (was numpy's future (1.1 and beyond): which direction(s) ?)

2008-03-24 Thread Robert Kern
On Sat, Mar 22, 2008 at 4:25 PM, Charles R Harris [EMAIL PROTECTED] wrote: On Sat, Mar 22, 2008 at 2:59 PM, Robert Kern [EMAIL PROTECTED] wrote: On Sat, Mar 22, 2008 at 2:04 PM, Charles R Harris [EMAIL PROTECTED] wrote: Maybe it's time to revisit the template subsystem I pulled out

Re: [Numpy-discussion] Openmp support (was numpy's future (1.1 and beyond): which direction(s) ?)

2008-03-24 Thread Robert Kern
of the given size (f.seek(FILE_SIZE); f.write('\0'); f.seek(0,0)) and then make each of the parallel programs memory map the file and only write to their respective portions. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own

Re: [Numpy-discussion] accumarray

2008-03-26 Thread Robert Kern
On Wed, Mar 26, 2008 at 5:20 PM, Gabriel J.L. Beckers [EMAIL PROTECTED] wrote: Does numpy have something like Matlab's accumarray? http://www.mathworks.com/access/helpdesk/help/techdoc/ref/accumarray.html No. -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-29 Thread Robert Kern
LDFLAGS worked by using env(1)? You still seem to have a -L/Users/hjm/lib flag that is obviously not coming from the command line. -- 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] OSX 10.4 installation problems

2008-03-29 Thread Robert Kern
executable ifc Could not locate executable g77 gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0': No such file or directory This is your main problem. Where did you get this gcc? I believe the one that comes with the Developer Tools is 4.0.1. -- Robert Kern I have come

Re: [Numpy-discussion] How do I make numpy raise exceptions instead of print warnings?

2008-03-29 Thread Robert Kern
On Sat, Mar 29, 2008 at 4:25 PM, Roy H. Han [EMAIL PROTECTED] wrote: Is there a way to have numpy raise exceptions instead of printing warnings? The printed warnings make debugging hard. numpy.seterr() Read the docstring for the various options. -- Robert Kern I have come to believe

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Robert Kern
. This is a deficiency of the g95 FCompiler implementation. No one has bothered to get it to work on OS X; I'm not sure if g95 even supports these flags. They were added to gcc (and accordingly gfortran) by Apple; I don't know if the g95 guy has kept up. -- Robert Kern I have come to believe that the whole world

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Robert Kern
On Sun, Mar 30, 2008 at 9:20 PM, Harry Mangalam [EMAIL PROTECTED] wrote: On Sunday 30 March 2008, Robert Kern wrote: On Sun, Mar 30, 2008 at 8:16 PM, Harry Mangalam [EMAIL PROTECTED] wrote: Answering part of my own question, one missing lib is (not surprisingly) libpython2.5 (add

Re: [Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-31 Thread Robert Kern
the bootstrap script installed to /Library/.../bin/f2py is looking for. If you did not intend to install an egg of numpy, this might be a leftover from a previous try. Delete the /Library/.../bin/f2py script and install numpy again. -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] code using Numeric and LinearAlgebra

2008-03-31 Thread Robert Kern
replace Numeric.matrixmultiply(v, x) with numpy.dot() , Yes. matrixmultiply() was a deprecated alias even in Numeric. or is there something i must watch for in the above two cases? Not particularly, no. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

Re: [Numpy-discussion] Numpy installation

2008-03-31 Thread Robert Kern
of these commands? -- 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 list

Re: [Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-31 Thread Robert Kern
run into as a side effect of my sloppiness? The f2py script should be the only thing outside of site-packages. You may want to edit site-packages/easy-install.pth to remove the old reference to the numpy egg. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
directory during install. Looking at the code, I can confirm that the menu system is simply buggy and the cause of your problem. Do not use 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

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 11:06 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi [EMAIL PROTECTED] wrote: Hi, I am having problems with numpy installation. 1

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 1:31 PM, Amit Itagi [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 1:21 PM, Robert Kern [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
or something ? Possibly. Exactly what is in this .../Python-2.5.2/ directory? Is the python executable .../Python-2.5.2/bin/python? -- 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] Numpy installation

2008-04-01 Thread Robert Kern
the --prefix. -- 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 list

Re: [Numpy-discussion] output arguments for dot(), tensordot()

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 11:56 AM, Andreas Klöckner [EMAIL PROTECTED] wrote: Hi all, is there a particular reason why dot() and tensordot() don't have output arguments? No technical reason. It just hasn't been done. If you were to implement it, we would be happy to accept it. -- Robert Kern

Re: [Numpy-discussion] Thoughts for 1.1

2008-04-02 Thread Robert Kern
if you wish, but don't break the current API. -- 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] Thoughts for 1.1

2008-04-02 Thread Robert Kern
On undefined, Charles R Harris [EMAIL PROTECTED] wrote: On Wed, Apr 2, 2008 at 4:30 PM, Robert Kern [EMAIL PROTECTED] wrote: On undefined, Charles R Harris [EMAIL PROTECTED] wrote: Hi All, I think it would enhance broadcasting if functions like sum, mean, etc didn't change

Re: [Numpy-discussion] Thoughts for 1.1

2008-04-02 Thread Robert Kern
the signature would be a: mean(axis=None, dtype=None, out=None, reduce=True). I imagine we would end up adding this capability to the .reduce() method of all binary ufuncs, so 'reduce' seems ... odd. 'keeprank'? -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Numpy-discussion] Efficient reading of binary data

2008-04-03 Thread Robert Kern
')? dtype=numpy.dtype('f8') -- 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

Re: [Numpy-discussion] Compile Numpy in VC++8

2008-04-03 Thread Robert Kern
interpreter will usually work. The commercial library you are using appears to be one of them. numpy is not one of them. If the commercial module must be built with VC++8, then you will need to also get *both* the Python interpreter and numpy built with VC++8. -- Robert Kern I have come to believe

Re: [Numpy-discussion] Compile Numpy in VC++8

2008-04-03 Thread Robert Kern
On Thu, Apr 3, 2008 at 4:52 PM, Chris Barker [EMAIL PROTECTED] wrote: Robert Kern wrote: Just since that has been discussed a LOT, for years, I want to be clear: Different versions of Microsoft's compiler use different libraries for the standard C library. Some simple Python extension

Re: [Numpy-discussion] Efficient reading of binary data

2008-04-03 Thread Robert Kern
, count=9*Stot, slice=6::9) Instead of reading using fromfile(), you can try memory-mapping the array. from numpy import memmap E = memmap(f, dtype=float_dtype, mode='r')[6::9] That may or may not help. At least, it should decrease the latency before you start pulling out frames. -- Robert

Re: [Numpy-discussion] problem with float64's str()

2008-04-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 ___ Numpy-discussion mailing list Numpy-discussion

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-07 Thread Robert Kern
from Numeric; I'd hate to break their trust again. It is really nice to think about having NumPy Core, NumPy Full, NumPyKits, SciPy Core, SciPy Full and SciPyKits. Really? It gives me the shivers, frankly. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

Re: [Numpy-discussion] Tests 32/64 bits

2008-04-07 Thread Robert Kern
and on Fedora x86_64, it's 863. Above is the difference (requested by rkern). I think this is fine. The different arises because of extra scalar types on the 32 bit system that don't show up on the AMD system, presumably float96 and complex192. Check numpy.sctypes for the difference. -- Robert Kern

Re: [Numpy-discussion] Spyke : moving forward

2008-04-07 Thread Robert Kern
this? That is not what I would have called a runtime. -- 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

Re: [Numpy-discussion] Tests 32/64 bits

2008-04-07 Thread Robert Kern
On Mon, Apr 7, 2008 at 6:29 PM, Fernando Perez [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 4:04 PM, Robert Kern [EMAIL PROTECTED] wrote: On 32 bits, 869 are found and on Fedora x86_64, it's 863. Above is the difference (requested by rkern). I think this is fine

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Robert Kern
it could. It's example code, not part of numpy itself. -- 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] numpyx.pyx (recent svn) works?

2008-04-09 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 ___ Numpy-discussion mailing list Numpy-discussion

Re: [Numpy-discussion] ticket #539

2008-04-09 Thread Robert Kern
On Wed, Apr 9, 2008 at 4:11 AM, Jarrod Millman [EMAIL PROTECTED] wrote: Hello Robert Kern (or some else who wants to take this). This one has a patch: http://projects.scipy.org/scipy/numpy/ticket/581 Can you verify that it is safe/correct and commit it? Fixed, along with a couple

<    8   9   10   11   12   13   14   15   16   17   >