Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
o refresh my opinion. > 22 февр. 2017 г., в 20:55, Stephan Hoyer написал(а): > > On Wed, Feb 22, 2017 at 8:57 AM, Alex Rogozhnikov <mailto:alex.rogozhni...@yandex.ru>> wrote: > Pandas may be nice, if you need a report, and you need get it done tomorrow. > Then you&#x

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
> 22 февр. 2017 г., в 20:39, josef.p...@gmail.com написал(а): > > > > On Wed, Feb 22, 2017 at 11:57 AM, Alex Rogozhnikov > mailto:alex.rogozhni...@yandex.ru>> wrote: > Hi Matthew, > maybe it is not the best place to discuss problems of pandas, but to show >

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
able, and hardly can be misinterpreted. - not super slow, 1-10 gigabytes datasets are a normal situation Well, that's it. Sorry for large letter. Alex. > 22 февр. 2017 г., в 18:38, Matthew Harrigan > написал(а): > > Alex, > > Can you please post some code showing ex

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
ee an example to understand how deep I need to go inside numpy. Cheers, Alex. > 22 февр. 2017 г., в 17:03, Francesc Alted написал(а): > > Hi Alex, > > 2017-02-22 12:45 GMT+01:00 Alex Rogozhnikov <mailto:alex.rogozhni...@yandex.ru>>: > Hi Nathanie

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
. Suggestions are welcome. Another strange question: in general, it is considered that once numpy.array is created, it's shape not changed. But if i want to keep the same recarray and change it's dtype and/or shape, is there a way to do this? Thanks, Alex. > 22 февр. 2017 г., в

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-21 Thread Alex Rogozhnikov
in a column-by-column way (and this is numpy, not pandas). Is there such a magic thing? Alex. > 22 февр. 2017 г., в 2:10, Chris Barker написал(а): > > > > On Tue, Feb 21, 2017 at 3:05 PM, Alex Rogozhnikov <mailto:alex.rogozhni...@yandex.ru>> wrote: > a question ab

[Numpy-discussion] Fortran order in recarray.

2017-02-21 Thread Alex Rogozhnikov
umpy x = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='C') y = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='F') print numpy.array(x.ctypes.get_strides()) # [16] print numpy.array(y.ctypes.get_str

Re: [Numpy-discussion] From Python to Numpy

2017-01-05 Thread Alex Rogozhnikov
> 31 дек. 2016 г., в 2:09, Nicolas P. Rougier > написал(а): > >> >> On 30 Dec 2016, at 20:36, Alex Rogozhnikov >> wrote: >> >> Hi Nicolas, >> that's a very nice work! >> >>> Comments/questions/fixes/ideas are of course welc

Re: [Numpy-discussion] From Python to Numpy

2016-12-30 Thread Alex Rogozhnikov
SL color spaces as those can be visualized easily e.g. on some photo. Thanks, Alex. > 23 дек. 2016 г., в 12:14, Kiko написал(а): > > > > 2016-12-22 17:44 GMT+01:00 Nicolas P. Rougier <mailto:nicolas.roug...@inria.fr>>: > > Dear all, > > I've just

Re: [Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-27 Thread Alex Beloi
Thanks for pointing out the tensorflow multinomial implementation, this will cover my use case perfectly. The documentation on raises is redundant as well, the relevant information is mentioned in the parameter description. I’ve closed the PR. Cheers, Alex From: NumPy

[Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-26 Thread Alex Beloi
`1e-12` tolerance to a non-negative float parameter with default value `1e-12`. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Weighted percentile / quantile

2016-03-02 Thread Alex Rogozhnikov
Hi, Joe, > I am working (slowly) on upgrading the C code for partitioning with > arbitrary arrays of real weights really good to know there is some work in this direction. 02 марта 2016 г., в 6:27, Joseph Fox-Rabinovitz написал(а): > Alex, > > At the moment, there does n

[Numpy-discussion] Weighted percentile / quantile

2016-03-01 Thread Alex Rogozhnikov
moment (numpy/scipy/pandas)? Cheers, Alex.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-06 Thread Alex Rogozhnikov
l try to invent something to other points, but this is not simple. (I left %matplolib inline due to more appropriate rendering) Alex. 02.10.15 10:50, Kiko пишет: 2015-10-02 9:48 GMT+02:00 Kiko <mailto:kikocorre...@gmail.com>>: 2015-10-02 9:38 GMT+02:00 Alex Rogozhnikov

Re: [Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-02 Thread Alex Rogozhnikov
I would suggest %matplotlib notebook It will still have to a nice png, but you get an interactive figure when it is live. Amazing, thanks. I was using mpld3 for this. (for some strange reason I need to put %matplotlib notebook before each plot) The recommendation of inverting a permutation

[Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-01 Thread Alex Rogozhnikov
.html Comments are welcome, specially if you know any other ways to make this code faster (or better). Regards, Alex. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.mean still broken for largefloat32arrays

2014-07-28 Thread alex
On Mon, Jul 28, 2014 at 8:46 AM, Sebastian Berg wrote: > On Mo, 2014-07-28 at 14:37 +0200, Eelco Hoogendoorn wrote: >> To rephrase my most pressing question: may np.ones((N,2)).mean(0) and >> np.ones((2,N)).mean(1) produce different results with the >> implementation in the current master? If so,

Re: [Numpy-discussion] `allclose` vs `assert_allclose`

2014-07-18 Thread alex
On Fri, Jul 18, 2014 at 9:47 PM, Charles R Harris wrote: > > > > On Fri, Jul 18, 2014 at 2:32 PM, Chris Barker wrote: >> >> On Fri, Jul 18, 2014 at 12:43 PM, Pauli Virtanen wrote: >>> >>> 18.07.2014 22:13, Chris Barker kirjoitti: >>> [clip] >>> > but an appropriate rtol would work there too. If

Re: [Numpy-discussion] Possible bug in linalg.matrix_rank

2014-05-22 Thread alex
On Thu, May 22, 2014 at 1:50 PM, Darlan Cavalcante Moreira wrote: > > After updating Ubuntu to 14.04 and thus numpy to version 1.8.1 I'm > having problems with the linalg.matrix_rank function that I didn't have > before (as far as I know). > > More specifically, I get the error > "TypeError: No lo

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread alex
On Wed, May 21, 2014 at 3:29 PM, Siegfried Gonzi wrote: > Please would anyone tell me the following is an undocumented bug > otherwise I will lose faith in everything: > > == > import numpy as np > > > years = [2004,2005,2006,2007] > > dates = [20040501,20050601,20060801,20071001] > > for x in yea

Re: [Numpy-discussion] numerical gradient, Jacobian, and Hessian

2014-04-21 Thread alex
On Mon, Apr 21, 2014 at 3:13 AM, Eelco Hoogendoorn wrote: > As far as I can tell, [Theano] is actually the only tensor/ndarray aware > differentiator out there And AlgoPy, a tensor/ndarray aware arbitrary order automatic differentiator (https://pythonhosted.org/algopy/) _

Re: [Numpy-discussion] Standard Deviation (std): Suggested change for "ddof" default value

2014-04-01 Thread alex
On Tue, Apr 1, 2014 at 4:54 PM, Charles R Harris wrote: > > > > On Tue, Apr 1, 2014 at 2:08 PM, Nathaniel Smith wrote: >> >> On Tue, Apr 1, 2014 at 9:02 PM, Sturla Molden >> wrote: >> > Haslwanter Thomas wrote: >> > >> >> Personally I cannot think of many applications where it would be >> >> de

Re: [Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

2014-03-27 Thread Alex Goodman
Hi Robert, That did the trick, thanks! Alex On Thu, Mar 27, 2014 at 3:02 PM, Robert Kern wrote: > On Thu, Mar 27, 2014 at 8:50 PM, David Cournapeau > wrote: > > > > On Thu, Mar 27, 2014 at 8:30 PM, Alex Goodman < > alex.good...@colostate.edu> > > wrote: &

[Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

2014-03-27 Thread Alex Goodman
solution, such as an additional command-line argument when invoking f2py? For what it is worth, I am also using Version 14.0.2 of the Intel Fortran Compiler. Thanks, Alex -- Alex Goodman Graduate Research Assistant Department of Atmospheric Science Colorado State University

Re: [Numpy-discussion] Missing Data

2014-03-26 Thread alex
On Wed, Mar 26, 2014 at 7:22 PM, T J wrote: > What is the status of: > >https://github.com/numpy/numpy/blob/master/doc/neps/missing-data.rst For what it's worth this NEP was written in 2011 by mwiebe who made 258 numpy commits in 2011, 1 in 2012, and 3 in 2014. According to github, in the la

Re: [Numpy-discussion] GSoC project: draft of proposal

2014-03-13 Thread alex
On Thu, Mar 13, 2014 at 1:35 PM, Leo Mao wrote: >> > And I found that maybe I can also make some functions related to linalg > (like dot, svd or something else) faster by integrating a proper library > into numpy. I think everyone who wants fast numpy linalg already connects to something like Ope

Re: [Numpy-discussion] Adding weights to cov and corrcoef

2014-03-06 Thread alex
On Thu, Mar 6, 2014 at 2:51 PM, Nathaniel Smith wrote: > On Wed, Mar 5, 2014 at 4:45 PM, Sebastian Berg > wrote: >> >> Hi all, >> >> in Pull Request https://github.com/numpy/numpy/pull/3864 Neol Dawe >> suggested adding new parameters to our `cov` and `corrcoef` functions to >> implement weights,

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-20 Thread alex
On Mon, Feb 17, 2014 at 1:24 PM, Sturla Molden wrote: > Sturla Molden wrote: >> Dave Hirschfeld wrote: >> >>> Even if lapack_lite always performed the isfinite check and threw a python >>> error if False, it would be much better than either hanging or segfaulting >>> and >>> people who care about

Re: [Numpy-discussion] Proposal to make power return float, and other such things.

2014-02-17 Thread alex
On Mon, Feb 17, 2014 at 8:13 PM, Charles R Harris wrote: > This is apropos issue #899, where it is suggested that power promote > integers to float. That sounds reasonable to me, but such a change in > behavior makes it a bit iffy. > > Thoughts? After this change, what would be the recommended wa

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-17 Thread alex
On Mon, Feb 17, 2014 at 4:49 AM, Dave Hirschfeld wrote: > alex ncsu.edu> writes: > >> >> Hello list, >> >> Here's another idea resurrection from numpy github comments that I've >> been advised could be posted here for re-discussion. >> &

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
On Sun, Feb 16, 2014 at 1:01 PM, David Freese wrote: > the 0s put into the array copy "arr" are not used in computation. The > _replace_nan call is used primarily to generate a mask of the NaNs and make > sure it passes the mutation test. I updated the unit tests to reflect > negative values, wh

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
> It doesn't deal with numpy.matrix in the same way as numpy.nanmean. never mind about this -- it looks like np.median is currently broken for np.matrix. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
On Sun, Feb 16, 2014 at 12:13 PM, David Freese wrote: > Hi everyone, > > I put together a np.nanmedian function to extend np.median to handle nans. > Could someone review this code and give me some feedback on it before I > submit a pull request for it? It looks good to submit as a pull request b

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 6:34 PM, Sebastian Berg wrote: > On Sa, 2014-02-15 at 18:20 -0500, alex wrote: > >> >> I'm not sure exactly what you mean by this. You are suggesting that >> if the svd fails with some kind of exception (possibly poorly or >> misleading

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
14 at 4:56 PM, Sebastian Berg >> >> wrote: >> >> > On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >> >> >> Hello list, >> >> >> >> >> >> Here's another idea resurrection from numpy github comments that I've

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, wrote: > On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > wrote: >> On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >>> Hello list, >>> >>> Here's another idea resurrection from numpy github comments that I

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, wrote: > On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > wrote: >> On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >>> Hello list, >>> >>> Here's another idea resurrection from numpy github comments that I

[Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
[ 0., 1.]]), array([ 1.e+300, 1.0000e+000]), array([[ 1., 0.], [ 0., 1.]])) >>> np.linalg.svd(C) [hangs forever] ``` """ Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-13 Thread alex
On Mon, Feb 10, 2014 at 11:16 AM, Alexander Belopolsky wrote: > > On Sun, Feb 9, 2014 at 4:59 PM, alex wrote: >> >> On the other hand, it really needs to be deprecated. > > > While numpy.matrix may have its problems, a NEP should list a better > rationale tha

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-11 Thread alex
ikipedia.org/wiki/Massive_open_online_course) for convex optimization (https://class.stanford.edu/courses/Engineering/CVX101/Winter2014/about). This course currently uses a MATLAB-based modeling system (http://cvxr.com/cvx/) but they are trying to switch to, or at least support, Python. But th

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-11 Thread alex
oing mostly linear > algebra. This point would suggest that the "domain specific language" defined by the numpy.matrix semantics would be particularly useful for representations of linear operators for which elementwise modification might be less effi

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 4:42 PM, Alan G Isaac wrote: > On 2/10/2014 4:40 PM, alex wrote: >> I really want to remove it > > Can you articulate the problem created by its existence > that leads you to this view? In my opinion, Pauli has articulated these problems w

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 3:47 PM, Matthew Brett wrote: > Hi, > > On Mon, Feb 10, 2014 at 12:44 PM, Charles R Harris > wrote: >> >> >> >> On Mon, Feb 10, 2014 at 1:23 PM, Alan G Isaac wrote: >>> >>> On 2/10/2014 3:04 PM, Matthew Brett wrote: >>> > I teach psychologists and neuroscientists mainly >

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 2:36 PM, Matthew Brett wrote: > Hi, > > On Mon, Feb 10, 2014 at 6:26 AM, Nathaniel Smith wrote: >> On Sun, Feb 9, 2014 at 4:59 PM, alex wrote: >>> Hello list, >>> >>> I wrote this mini-nep for numpy but I've been advised i

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 2:03 PM, eat wrote: > Rhetorical or not, but FWIW I'll prefer to take singular value decomposition > (u, s, vt= svd(x)) and then based on the singular values s I'll estimate a > "numerically feasible rank" r. Thus the diagonal of such hat matrix would be > (u[:, :r]** 2).su

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 12:16 PM, Nathaniel Smith wrote: > On Mon, Feb 10, 2014 at 12:02 PM, Matthieu Brucher > wrote: >> Yes, but these will be scipy.sparse matrices, nothing to do with numpy >> (dense) matrices. > > Unfortunately when scipy.sparse matrices interact with dense ndarrays > (e.g.,

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 11:27 AM, wrote: > How do we calculate the diagonal of the hat matrix without using N by N > matrices? Not sure if this was a rhetorical question or what, but this seems to work leverages = np.square(scipy.linalg.qr(X, mode='economic')[0]).sum(axis=1) http://www4.ncsu.edu

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-09 Thread alex
On Sun, Feb 9, 2014 at 5:12 PM, Alan G Isaac wrote: > On 2/9/2014 4:59 PM, alex wrote: >> """ >> The ``numpy.matrix`` API provides a low barrier to using Python >> for linear algebra, just as the pre-3 Python ``input`` function >> and ``print`` statement

[Numpy-discussion] deprecate numpy.matrix

2014-02-09 Thread alex
ill register as a vote to help nudge its deprecation closer to the realm of acceptable discussion. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Need help with np.ma.median and np.apply_along_axis

2013-12-27 Thread alex
median is faster in version 1.8 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] xkcd on git commit messages.

2013-11-27 Thread alex
On Wed, Nov 27, 2013 at 11:56 AM, Charles R Harris wrote: > Here. And his later commit messages went straight to https://twitter.com/gitlost ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discus

Re: [Numpy-discussion] runtime warning for where

2013-11-16 Thread alex
On Sat, Nov 16, 2013 at 8:28 AM, David Pine wrote: > The program at the bottom of this message returns the following runtime > warning: > > python test.py > test.py:5: RuntimeWarning: invalid value encountered in divide > return np.where(x==0., 1., np.sin(x)/x) > > The function works correctly r

Re: [Numpy-discussion] runtime warning for where

2013-11-16 Thread alex
On Sat, Nov 16, 2013 at 8:28 AM, David Pine wrote: > The program at the bottom of this message returns the following runtime > warning: > > python test.py > test.py:5: RuntimeWarning: invalid value encountered in divide > return np.where(x==0., 1., np.sin(x)/x) > > The function works correctly r

Re: [Numpy-discussion] is np vector a sequence?

2013-10-28 Thread alex
On Mon, Oct 28, 2013 at 11:47 AM, Neal Becker wrote: > > isinstance (np.zeros (10), collections.Sequence) > Out[36]: False > > That's unfortunate. There seems to be a discussion here https://github.com/numpy/numpy/issues/2776 Alex

Re: [Numpy-discussion] NumPy 1.8.0rc2 release

2013-10-25 Thread alex
eliberately uses the upper vs. lower part according to the UPLO arg which is documented as defaulting to 'L', so I see why this difference between numpy versions is an unexpected problem. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] profiling numpy functions

2013-10-23 Thread alex
I have a question about numpy profiling. When I run my script with -m cProfile I see timings for lots of functions, but not for some like np.exp(). How do I see these timings? I don't want to have to work around it by writing a lot of functions like def mynumpyexp(A): return np.exp(A). _

[Numpy-discussion] How to find number of bytes in a PyArrayObject without a segfault

2013-09-12 Thread Alex Eftimiades
n a segfault), or iterating over each dimension? Please point me in the right direction. There must be a way or else the entire software suite would not work. Thanks, Alex Eftimiades ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://ma

[Numpy-discussion] Fwd: Pull request #3188 - Void scalar pickling behavior.

2013-04-06 Thread Alex Ford
pickling, which pickle properly. Unless there are objections or opinions on potential solutions, I am inclined to implement A. Thanks, Alex Ford ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] Merging structured arrays with mixed dtypes including '|O4'

2013-01-28 Thread Alex
e, count=maxlength) ValueError: cannot create object arrays from iterator The issue seems to be object field 'Tstamp' which contains python datetime objects. I can merge structured arrays with numeric formats. Any help much appreciated. Alex van der Spek

Re: [Numpy-discussion] Should abs([nan]) be supported?

2012-09-30 Thread Alex Leach
tingPointError, and corresponding numpy test failures. I figure this is caused by a compile flag that I did or didn't use, so dug around the icc man page, and think I found the cause for it... I built my Ubuntu python with the '-fp-model strict' op

Re: [Numpy-discussion] vectorized multi-matrix multiplication

2012-08-26 Thread Alex Flint
Thank you. On Sun, Aug 26, 2012 at 11:04 AM, Alex Flint wrote: > I have two lists of 3x3 arrays and I would like to compute the matrix > product of the i-th element in the first list with the i-th element in > the second list. Of course, I could just loop over the lists: > > f

[Numpy-discussion] vectorized multi-matrix multiplication

2012-08-26 Thread Alex Flint
27;t found anything that works yet. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Alex Clark
ed (easy_install pip) you can: $ pip uninstall numpy (it will uninstall things it hasn't installed, which I think should include the console_script f2py?) Alex > > Cheers, > Scott > -- Alex Clark · http://pythonpackages.com/ONE_CLICK __

Re: [Numpy-discussion] ANN: pythonpackages.com beta

2012-07-29 Thread Alex Clark
this, can you open a ticket here with some more details about the problem? - https://bitbucket.org/pythonpackages/pythonpackages.com/issues/new IIUC an "optimized BLAS" is some shared library that makes numpy's operations peform better? Alex > > Fred > > On

[Numpy-discussion] ANN: pythonpackages.com beta

2012-07-28 Thread Alex Clark
/nights in #pythonpackages on irc.freenode.net. Hope to meet/talk with all of you soon. Alex -- Alex Clark · http://pythonpackages.com/ONE_CLICK ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] installing matplotlib in MacOs 10.6.8.

2011-12-25 Thread Alex Ter-Sarkissov
hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from 2.6). I have a problem with installing matplotlib (I found the version for python 2.7. MacOs 10.3, no later versions). If I run python in terminal using arch -i386 python, and then from matplotlib.pylab import * and similar stuff

[Numpy-discussion] strange conversion integer to float

2011-12-17 Thread Alex van Houten
x27;1.5.1' >>> time=[] >>> time.append(20091231) >>> time_array=np.array(time,'f') >>> time_array array([ 20091232.], dtype=float32) 20091231--->20091232 Why? Note: >>> float(20091231) 20091231.0 Thanks, Alex.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
OK thanks guys, reinstalling the interpreter did the trick. I'm quite sure I did it before though, without any effect. More interestingly, I have two interpreters running, one for 2.6 and the other the auto. So the latter one still tells me the module isn't found, the former works just fine. Myster

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yeah, I've already removed it, still doesn't work. I'm running Python 2.6 and SciPy version I'm trying to install is scipy-0.10.0-py2.6-python.org-macosx10.3., pydev version is 2.2.4 I've had no trouble running numpy or Tkinter for example. Also none of the other modules I'm using have been added

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yes, that's exactly what i did. I'm using Python2.6 both in PyDev and Scipy. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
I'm using Eclipse (PyDev) on MacOS. I downloaded scipy010, installed it and added path to .mpkg file to PYTHONPATH and scipy to forced built-in. Nothing worked, I keep getting 'module scipy not found'. I then removed the link to the .mpkg and still nothing works. Strange enough, numpy works just fi

[Numpy-discussion] binary to ascii

2011-11-29 Thread Alex Ter-Sarkissov
hi eveyone, is there a simple command in numpy similar to matlab char(bin2dec('//some binary value//')) to convert binary to characters and back? thanks ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/

[Numpy-discussion] dtyping with .astype()

2011-10-17 Thread Alex van der Spek
pe(dtypes) gives me a confusing result. I only asked to name the columns and change their types to half precision floats. What am I missing? How to do this? Thank you in advance, Alex van der Spek ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] (no subject)

2011-10-03 Thread Alex Ter-Sarkissov
I got a problem running NumPy in Eclipse. I recently installed PyDev, but after downloading NumPy the installation attempt failed since python 2.6 was not found. I've installed Python 2.7. Do I need to replace it with Python 2.6? ___ NumPy-Discussion mail

[Numpy-discussion] dealing with RGB images

2011-08-09 Thread Alex Flint
ay to achieve this within numpy? Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] inconsistent semantics for double-slicing

2011-07-27 Thread Alex Flint
large image, modulo a mask on the small image. Is this meant to be like this? Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] import

2011-07-19 Thread Alex Ter-Sarkissov
this is probably silly question, I've seen in this in one of the tutorials: from tkinter import * import tkinter.messagebox given that * implies importing the whole module, why would anyone bother with importing a specific command on top of it? ___ Nu

[Numpy-discussion] correlation in fourier domain

2011-06-24 Thread Alex Flint
I would like to perform 2d correlations between a large matrix A and a bunch of small matrices B1...Bn. Is there anything built into numpy to help me do this efficiently in the fourier domain (i.e. DFT of A -> multiplication with DFT of B1..Bn)? Cheers, A

[Numpy-discussion] argmax for top N elements

2011-06-22 Thread Alex Flint
Is it possible to use argmax or something similar to find the locations of the largest N elements in a matrix? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] fast SSD

2011-06-21 Thread Alex Flint
sub-array and computes the SSD with something like ((A-B)**2).sum(). Cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
b = a.astype(np.float32).sum(axis=-1).astype(np.float64); > b /= 3.0 > 10 loops, best of 3: 163 ms per loop > > Eric > > > > > > > > On Jun 20, 2011, at 4:15 PM, Alex Flint wrote: > > > >> At the moment I'm using numpy.dot to convert a WxHx3

[Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
At the moment I'm using numpy.dot to convert a WxHx3 RGB image to a grayscale image: src_mono = np.dot(src_rgb.astype(np.float), np.ones(3)/3.); This seems quite slow though (several seconds for a 3 megapixel image) - is there a more specialized routine better suited to this? Cheers,

[Numpy-discussion] k maximal elements

2011-06-05 Thread Alex Ter-Sarkissov
I have a vector of positive integers length n. Is there a simple (i.e. without sorting/ranking) of 'pulling out' k larrgest (or smallest) values. Something like *sum(x[sum(x,1)>(max(sum(x,1)+min(sum(x,1/2,])* but smarter ___ NumPy-Discussion mailing

Re: [Numpy-discussion] [ANN]: OpenPiv. A python package for PIV image analysis

2011-04-25 Thread Alex Liberzon
actually for the CFD data, I am not aware of the open source and free ones. Would you join our team? Best regards, Alex Liberzon Turbulence Structure Laboratory [http://www.eng.tau.ac.il/turbulencelab] School of Mechanical Engineering Tel Aviv University Le dimanche 24 avril 2011 ? 16:53 +02

[Numpy-discussion] division operator

2011-04-04 Thread Alex Ter-Sarkissov
I have 2 variables, say var1=10,var2=100. To divide I do either divide(float(var1),float(var2)) or simply float(var1)/float(var2). I'm just wondering if there's a smarter way of doing this? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

[Numpy-discussion] random number genration

2011-03-31 Thread Alex Ter-Sarkissov
thanks Sturl, your second code works well although I had to divide the vector elements through 128 to get just the binaries ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] random number genration

2011-03-29 Thread Alex Ter-Sarkissov
If I want to generate a string of random bits with equal probability I run random.randint(0,2,size). What if I want a specific proportion of bits? In other words, each bit is 1 with probability p<1/2 and 0 with probability q=1-p? thanks ___ NumPy-Discu

[Numpy-discussion] (no subject)

2011-03-02 Thread Alex Ter-Sarkissov
ssage. I'd be glad if any1 could have any suggestions in this regard. cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054512.html

2011-01-16 Thread Alex Ter-Sarkissov
hi thanks I've sorted ou the issue Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] float conversion

2011-01-16 Thread Alex Ter-Sarkissov
oat(x) returns TypeError: float() argument must be a string or a number Any ideas what to do with this (e.g. convert to floating numbers)? cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-19 Thread Alex Ter-Sarkissov
thanks! it actually worked! maybe u could recommend some good sources/readin on how to install different modules in python run under linux thanks again, alex 2010/10/19 Pauli Virtanen > Tue, 19 Oct 2010 21:26:38 +1300, Alex Ter-Sarkissov wrote: > > thanks, this didn't seem to

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-19 Thread Alex Ter-Sarkissov
thanks, this didn't seem to work. I get a whole range of errors, most importantly SystemError: Cannot compiler 'Python.h'. Perhaps you need to install python-dev|python-devel. Apparently, according to numpy installation guide (here

[Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Alex Ter-Sarkissov
hi everyone, i'm very new to ubuntu, now trying to install numpy and wxpython. Having unpacked numpy and running the standard commnad in idle from numpy import * i get the message ImportError: Error importing numpy: you should not try to import numpy from its source directory; please ex

[Numpy-discussion] array manipulation

2010-08-16 Thread Alex Ter-Sarkissov
hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't, fo

[Numpy-discussion] numpy.vectorize fails, howto avoid hardcoding parameters?

2010-08-02 Thread Alex Kraus
Hi, I am trying to create a function that calculates the integral of another function. The integral function should later be used in scipy.optimize.leastsq(f, ...), so ideally it should have the format: def f(x, *param) so that it works for a variable number of parameters. While my code works

Re: [Numpy-discussion] problem with applying patch

2010-03-15 Thread alex
Pauli Virtanen iki.fi> writes: Thank you. the problem is solved ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Problems installing numpy on Mac OS 10.4

2008-02-22 Thread Alex Donaldson
Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_4422 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Framewo

[Numpy-discussion] Problems installing numpy on Mac OS 10.4

2008-02-22 Thread Alex Donaldson
I'm trying to install numpy 1.0.4 on my Intel MacBook Pro with Mac OS 10.4 and running Python 2.5. When I run python setup.py build I get the errors below. Is this a compatibility issue?: Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_4422

Re: [Numpy-discussion] matlab to numpy help

2007-12-23 Thread Alex
e job "explicitly", using Tony's trick mostly. Hope it helps, Alex On Dec 23, 7:52 pm, "Gabriel J.L. Beckers" <[EMAIL PROTECTED]> wrote: > I found a matlab script that I want to translate into numpy, but have > difficulties with understanding indexing in matla

[Numpy-discussion] PCA - Principal Component Analysis

2007-06-24 Thread Alex Torquato S. Carneiro
I'm doing some projects in Python (system GNU / Linux - Ubuntu 7.0) about image processing. I'm needing a implementation of PCA, prefer to library for apt-get. Thanks. Alex. Novo Y

  1   2   >