Re: [Numpy-discussion] (no subject)

2016-04-27 Thread Sebastian Berg
On Mi, 2016-04-27 at 22:11 +0530, Saumyajit Dey wrote: > Hi, > > Thanks a lot for the reply. I am looking into the documentation > already. Also is there any guide as to how the source code of Numpy > is organised? > > For example, when i write > > > np.power(2,3) > what is the workflow in

Re: [Numpy-discussion] (no subject)

2016-04-27 Thread Saumyajit Dey
Hi, Thanks a lot for the reply. I am looking into the documentation already. Also is there any guide as to how the source code of Numpy is organised? For example, when i write np.power(2,3) ​what is the workflow in terms of functions in different modules being called?​ ​Regards, Saumyajit​

Re: [Numpy-discussion] (no subject)

2016-04-27 Thread Maniteja Nandana
Hi, Welcome! It would be a good exercise to look at the documentation and tutorial for Numpy at http://docs.scipy.org/doc/ Also the lectures at the lectures at www.scipy-lectures.org might be a interesting introduction to scientific python in numpy stack. Hope it helps. Happy learning !

Re: [Numpy-discussion] (no subject)

2016-04-26 Thread Saumyajit Dey
​Thanks a lot, Paul for the reply. I will​ look into the contribution guidelines. Also could you please suggest some good reading resources for getting to know more about NumPy. Regards, Saumyajit Saumyajit Dey Junior Undergraduate Student: Department of Computer Science and Engineering

Re: [Numpy-discussion] (no subject)

2016-04-26 Thread Paul Hobson
Saumyajit, Numpy's source code is hosted on Github. You can find the contributing guides there: https://github.com/numpy/numpy/blob/master/CONTRIBUTING.md -paul On Tue, Apr 26, 2016 at 2:35 AM, Saumyajit Dey < dsaumya...@student.nitw.ac.in> wrote: > Hi, > > This is Saumyajit Dey and I am

[Numpy-discussion] (no subject)

2016-04-26 Thread Saumyajit Dey
Hi, This is Saumyajit Dey and I am looking forward to start contributing to NumPy. I have never contributed to any open source projects before so I would want to know some tips and guidelines to start contributing. Regards, Saumyajit Saumyajit Dey Junior Undergraduate Student: Department of

[Numpy-discussion] (no subject)

2014-09-18 Thread Petr Viktorin
Hello, Over at Python-ideas, there is a thread [0] about the following discrepancy: numpy.array(float('inf')) // 1 inf float('inf') // 1 nan There are reasons for either result, but I believe it would be very nice if either Python or Numpy changed, so they would give the same value. If any of

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Benjamin Root
My vote is that NumPy is correct here. I see no reason why float('inf') / 1 and float('inf') // 1 should return different results. Ben Root On Thu, Sep 18, 2014 at 12:31 PM, Petr Viktorin encu...@gmail.com wrote: Hello, Over at Python-ideas, there is a thread [0] about the following

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Chris Barker
Well, First of all, numpy and the python math module have a number of differences when it comes to handling these kind of special cases -- and I think that: 1) numpy needs to do what makes the most sense for numpy and NOT mirror the math lib. 2) the use-cases of the math lib and numpy are

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Jonathan Helmus
On 09/18/2014 12:01 PM, Chris Barker wrote: Well, First of all, numpy and the python math module have a number of differences when it comes to handling these kind of special cases -- and I think that: 1) numpy needs to do what makes the most sense for numpy and NOT mirror the math lib.

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Petr Viktorin
On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus jjhel...@gmail.com wrote: On 09/18/2014 12:01 PM, Chris Barker wrote: Well, First of all, numpy and the python math module have a number of differences when it comes to handling these kind of special cases -- and I think that: 1) numpy needs

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Chris Barker
On Thu, Sep 18, 2014 at 10:44 AM, Petr Viktorin encu...@gmail.com wrote: 2) the use-cases of the math lib and numpy are different, so they maybe _should_ have different handling of this kind of thing. If you have a reason for the difference, I'd like to hear it. For one, numpy does array

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Jonathan Helmus
On 09/18/2014 12:44 PM, Petr Viktorin wrote: On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus jjhel...@gmail.com wrote: On 09/18/2014 12:01 PM, Chris Barker wrote: Well, First of all, numpy and the python math module have a number of differences when it comes to handling these kind of

Re: [Numpy-discussion] (no subject)

2014-09-18 Thread Ian Henriksen
On Thu, Sep 18, 2014 at 1:30 PM, Jonathan Helmus jjhel...@gmail.com wrote: On 09/18/2014 12:44 PM, Petr Viktorin wrote: On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus jjhel...@gmail.com wrote: On 09/18/2014 12:01 PM, Chris Barker wrote: Well, First of all, numpy and the python

Re: [Numpy-discussion] (no subject)

2014-01-24 Thread Ralf Gommers
On Thu, Jan 23, 2014 at 11:58 PM, jennifer stone jenny.stone...@gmail.comwrote: Scipy doesn't have a function for the Laplace transform, it has only a Laplace distribution in scipy.stats and a Laplace filter in scipy.ndimage. An inverse Laplace transform would be very welcome I'd think -

Re: [Numpy-discussion] (no subject)

2014-01-23 Thread jennifer stone
Both scipy and numpy require GSOC candidates to have a pull request accepted as part of the application process. I'd suggest implementing a function not currently in scipy that you think would be useful. That would also help in finding a mentor for the summer. I'd also suggest getting

Re: [Numpy-discussion] (no subject)

2014-01-23 Thread jennifer stone
Scipy doesn't have a function for the Laplace transform, it has only a Laplace distribution in scipy.stats and a Laplace filter in scipy.ndimage. An inverse Laplace transform would be very welcome I'd think - it has real world applications, and there's no good implementation in any open source

Re: [Numpy-discussion] (no subject)

2014-01-22 Thread Ralf Gommers
On Tue, Jan 21, 2014 at 5:46 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jan 21, 2014 at 9:26 AM, jennifer stone jenny.stone...@gmail.comwrote: What are your interests and experience? If you use numpy, are there things you would like to fix, or enhancements you would

Re: [Numpy-discussion] (no subject)

2014-01-21 Thread jennifer stone
What are your interests and experience? If you use numpy, are there things you would like to fix, or enhancements you would like to see? Chuck I am an undergraduate student with CS as major and have interest in Math and Physics. This has led me to use NumPy and SciPy to work on innumerable

Re: [Numpy-discussion] (no subject)

2014-01-21 Thread Charles R Harris
On Tue, Jan 21, 2014 at 9:26 AM, jennifer stone jenny.stone...@gmail.comwrote: What are your interests and experience? If you use numpy, are there things you would like to fix, or enhancements you would like to see? Chuck I am an undergraduate student with CS as major and have interest

Re: [Numpy-discussion] (no subject)

2014-01-21 Thread Stéfan van der Walt
On Tue, 21 Jan 2014 21:56:17 +0530, jennifer stone wrote: I am an undergraduate student with CS as major and have interest in Math and Physics. This has led me to use NumPy and SciPy to work on innumerable cases involving special polynomial functions and polynomials like Legendre polynomials,

Re: [Numpy-discussion] (no subject)

2014-01-21 Thread Charles R Harris
On Tue, Jan 21, 2014 at 9:46 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jan 21, 2014 at 9:26 AM, jennifer stone jenny.stone...@gmail.comwrote: What are your interests and experience? If you use numpy, are there things you would like to fix, or enhancements you would

[Numpy-discussion] (no subject)

2014-01-18 Thread jennifer stone
Hello, This is Jennifer Stupensky. I would like to contribute to NumPy this GSoC. What are the potential projects that can be taken up within the scope of GSoC? Thanks a lot in anticipation Regards Jennifer ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] (no subject)

2014-01-18 Thread Charles R Harris
Hi Jennifer, On Sat, Jan 18, 2014 at 11:48 AM, jennifer stone jenny.stone...@gmail.comwrote: Hello, This is Jennifer Stupensky. I would like to contribute to NumPy this GSoC. What are the potential projects that can be taken up within the scope of GSoC? Thanks a lot in anticipation Regards

Re: [Numpy-discussion] (no subject)

2013-11-27 Thread Matthew Brett
Hi, Thanks both - very helpful, Matthew On 11/22/13, Robert Kern robert.k...@gmail.com wrote: On Fri, Nov 22, 2013 at 9:23 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, I'm sorry if I missed something obvious - but is there a vectorized way to look for None in an array? In [3]:

[Numpy-discussion] (no subject)

2013-11-22 Thread Matthew Brett
Hi, I'm sorry if I missed something obvious - but is there a vectorized way to look for None in an array? In [3]: a = np.array([1, 1]) In [4]: a == object() Out[4]: array([False, False], dtype=bool) In [6]: a == None Out[6]: False (same for object arrays), Thanks a lot, Matthew

Re: [Numpy-discussion] (no subject)

2013-11-22 Thread Warren Weckesser
On Fri, Nov 22, 2013 at 4:23 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, I'm sorry if I missed something obvious - but is there a vectorized way to look for None in an array? In [3]: a = np.array([1, 1]) In [4]: a == object() Out[4]: array([False, False], dtype=bool) In [6]: a

Re: [Numpy-discussion] (no subject)

2013-11-22 Thread Robert Kern
On Fri, Nov 22, 2013 at 9:23 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, I'm sorry if I missed something obvious - but is there a vectorized way to look for None in an array? In [3]: a = np.array([1, 1]) In [4]: a == object() Out[4]: array([False, False], dtype=bool) In [6]: a

[Numpy-discussion] (no subject)

2013-09-03 Thread Carl Canuck
Hello, I'm new to numpy, and I'm a stuck on my first real project with it. I am trying to take the rfft of a numpy array, like this: my_rfft = numpy.fft.rfft(my_numpy_array) and replace the amplitudes that can be obtained with: my_amplitudes = numpy.abs(my_rfft) with amplitudes from an

Re: [Numpy-discussion] (no subject)

2013-09-03 Thread Cera, Tim
I am trying to take the rfft of a numpy array, like this: my_rfft = numpy.fft.rfft(my_numpy_array) and replace the amplitudes that can be obtained with: my_amplitudes = numpy.abs(my_rfft) with amplitudes from an arbitrary numpy array's rFFT, which is to then be converted back using

Re: [Numpy-discussion] (no subject)

2013-09-03 Thread Carl Canuck
Hi Tim, Brilliant! Many thanks... I think this is exactly what I need, I owe you a beer (or other beverage of your choice). I'm now going to lock myself in the basement until I can work out an implementation of this for my use-case :) /Carl On Tue, Sep 3, 2013 at 9:05 PM, Cera, Tim

Re: [Numpy-discussion] (no subject)

2012-04-22 Thread eat
Hi, On Fri, Apr 20, 2012 at 9:15 PM, Andre Martel soucoupevola...@yahoo.comwrote: What would be the best way to remove the maximum from a cube and collapse the remaining elements along the z-axis ? For example, I want to reduce Cube to NewCube: Cube array([[[ 13, 2, 3, 42],

[Numpy-discussion] (no subject)

2012-04-20 Thread Andre Martel
What would be the best way to remove the maximum from a cube and collapse the remaining elements along the z-axis ? For example, I want to reduce Cube to NewCube: Cube array([[[  13,   2,   3,  42],     [  5, 100,   7,   8],     [  9,   1,  11,  12]],    [[ 25,   4,  15,   1],

Re: [Numpy-discussion] (no subject)

2012-04-20 Thread Tony Yu
On Fri, Apr 20, 2012 at 2:15 PM, Andre Martel soucoupevola...@yahoo.comwrote: What would be the best way to remove the maximum from a cube and collapse the remaining elements along the z-axis ? For example, I want to reduce Cube to NewCube: Cube array([[[ 13, 2, 3, 42], [

[Numpy-discussion] (no subject)

2012-04-06 Thread Jean-Baptiste Rudant
a href=http://alumnos.digicap.cl/images/rmngl.html; http://alumnos.digicap.cl/images/rmngl.html/a___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] (no subject)

2012-04-06 Thread mark florisson
Could someone please ban this person from the mailing list, he keeps sending spam. On 6 April 2012 12:41, Jean-Baptiste Rudant boogalo...@yahoo.fr wrote: http://alumnos.digicap.cl/images/rmngl.html ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] (no subject)

2012-04-06 Thread Pierre Haessig
Le 06/04/2012 14:06, mark florisson a écrit : Could someone please ban this person from the mailing list, he keeps sending spam. I was about to ask the same thing. In the mean time, I googled the name of this gentleman and found a possible match with a person working for the French national

Re: [Numpy-discussion] (no subject)

2012-04-06 Thread Ognen Duzlevski
On Fri, Apr 6, 2012 at 7:06 AM, mark florisson markflorisso...@gmail.comwrote: Could someone please ban this person from the mailing list, he keeps sending spam. On 6 April 2012 12:41, Jean-Baptiste Rudant boogalo...@yahoo.fr wrote: http://alumnos.digicap.cl/images/rmngl.html They should

[Numpy-discussion] (no subject)

2012-04-04 Thread Jean-Baptiste Rudant
a href=http://donnamaui.com/images/uploads/_thumbs/fjgvkd.html; http://donnamaui.com/images/uploads/_thumbs/fjgvkd.html/a___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] (no subject)

2012-04-03 Thread Jean-Baptiste Rudant
a href=http://dmjmultimedia.com/components/com_jcomments/tpl/default/jrklre.html; http://dmjmultimedia.com/components/com_jcomments/tpl/default/jrklre.html/a___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] (no subject)

2012-04-02 Thread Jean-Baptiste Rudant
a href=http://motovideo.cl/videos/website_2.0/wp-content/02efpk.html; http://motovideo.cl/videos/website_2.0/wp-content/02efpk.html/a___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] (no subject)

2012-02-06 Thread Debashish Saha
basic difference between the commands: import numpy as np from numpy import * ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] (no subject)

2012-02-06 Thread Brett Olsen
The namespace is different. If you want to use numpy.sin(), for example, you would use: import numpy as np np.sin(angle) or from numpy import * sin(angle) I generally prefer the first option because then I don't need to worry about multiple imports writing on top of each other (i.e., having

[Numpy-discussion] (no subject)

2012-01-20 Thread Hänel Nikolaus Valentin
Hi, I would like to make a sanity test to check that calling the same function with different parameters actually gives different results. I am currently using:: try: npt.assert_almost_equal(numpy_result, result) except AssertionError: assert True else:

Re: [Numpy-discussion] (no subject)

2012-01-20 Thread Olivier Delalleau
Not sure if there's a better way, but you can do it with assert not numpy.allclose(numpy_result, result) -=- Olivier 2012/1/20 Hänel Nikolaus Valentin valentin.hae...@epfl.ch Hi, I would like to make a sanity test to check that calling the same function with different parameters actually

Re: [Numpy-discussion] (no subject)

2012-01-20 Thread Hänel Nikolaus Valentin
* Olivier Delalleau sh...@keba.be [120120]: Not sure if there's a better way, but you can do it with assert not numpy.allclose(numpy_result, result) Okay, thats already better than what I have. thanks V- ___ NumPy-Discussion mailing list

[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

Re: [Numpy-discussion] (no subject)

2011-10-03 Thread Olivier Delalleau
Sounds like you need to re-download NumPy, but the version for Python 2.7. -=- Olivier 2011/10/3 Alex Ter-Sarkissov ater1...@gmail.com 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

Re: [Numpy-discussion] (no subject)

2011-03-03 Thread Till Stensitzki
Alex Ter-Sarkissov ater1980 at gmail.com writes: hi, the question is probably very silly, but can't get my head around itSay I have an NxM numerical array. What I want is to obtain the row and column number of the smallest value(kinda like find command in Matlab). I use something like

Re: [Numpy-discussion] (no subject)

2011-03-03 Thread Marcel Blattner
...for example: A = np.random.rand(5,5) In [366]: A Out[366]: array([[ 0.36380049, 0.26440478, 0.8515609 , 0.07893608, 0.48084575], [ 0.71133527, 0.90912083, 0.14812865, 0.23223621, 0.49983985], [ 0.51668793, 0.73303799, 0.18620246, 0.52968823, 0.51904697], [

[Numpy-discussion] (no subject)

2011-03-02 Thread Alex Ter-Sarkissov
hi, the question is probably very silly, but can't get my head around it Say I have an NxM numerical array. What I want is to obtain the row and column number of the smallest value(kinda like find command in Matlab). I use something like where(min(array_name)), but keep getting the error message.

Re: [Numpy-discussion] (no subject)

2011-03-02 Thread Skipper Seabold
On Wed, Mar 2, 2011 at 5:25 PM, Alex Ter-Sarkissov ater1...@gmail.com wrote: hi, the question is probably very silly, but can't get my head around it Say I have an NxM numerical array. What I want is to obtain the row and column number of the smallest value(kinda like find command in Matlab).

Re: [Numpy-discussion] (no subject)

2011-03-02 Thread Robert Kern
On Wed, Mar 2, 2011 at 16:25, Alex Ter-Sarkissov ater1...@gmail.com wrote: hi, the question is probably very silly, but can't get my head around it Say I have an NxM numerical array. What I want is to obtain the row and column number of the smallest value(kinda like find command in Matlab). I

[Numpy-discussion] (no subject)

2010-07-21 Thread Ioan-Alexandru Lazar
Hello everyone, I'm currently planning to use a Python-based infrastructure for our HPC project. I've previously used NumPy and SciPy for basic scientific computing tasks, but performance hasn't been quite an issue for me until now. At the moment I'm not too sure as to what to do next though, and

Re: [Numpy-discussion] (no subject)

2009-05-14 Thread Sebastian Walter
On Wed, May 13, 2009 at 10:18 PM, David J Strozzi stroz...@llnl.gov wrote: Hi, [You may want to edit the numpy homepage numpy.scipy.org to tell people they must subscribe to post, and adding a link to http://www.scipy.org/Mailing_Lists] Many of you probably know of the interpreter yorick

[Numpy-discussion] (no subject)

2009-05-13 Thread David J Strozzi
Hi, [You may want to edit the numpy homepage numpy.scipy.org to tell people they must subscribe to post, and adding a link to http://www.scipy.org/Mailing_Lists] Many of you probably know of the interpreter yorick by Dave Munro. As a Livermoron, I use it all the time. There are some

[Numpy-discussion] (no subject)

2008-10-30 Thread frank wang
Hi, In my work, I want to implement a fir filter with an input array. Since performing the filter on each input sample is slow, are there fast way to perform the fir filter operation? Are there ways to convert input into an array and perform the array multipication? Thanks Frank

Re: [Numpy-discussion] (no subject)

2008-10-30 Thread David Cournapeau
frank wang wrote: Hi, In my work, I want to implement a fir filter with an input array. Since performing the filter on each input sample is slow, are there fast way to perform the fir filter operation? Are there ways to convert input into an array and perform the array multipication?

[Numpy-discussion] (no subject)

2007-02-16 Thread gzhu
] On Behalf Of Nadav Horesh Sent: Friday, February 16, 2007 8:52 AM To: Discussion of Numerical Python Subject: RE: [Numpy-discussion] Numpy and iterative procedures At first glance it doesn't look hard to, at least, avoid looping over i, by replacing [i] by [:-2], [i+1] by [1:-1] and [i+2] by [2

Re: [Numpy-discussion] (no subject)

2007-02-16 Thread Nadav Horesh
PROTECTED] Sent: Fri 16-Feb-07 18:34 To: numpy-discussion@scipy.org Cc: Subject:[Numpy-discussion] (no subject) Hi Nadav, The code is attached at the end. There is probably still bugs in there but it does not prevent me from showing the difficulty. If you look at the inner loop

[Numpy-discussion] (no subject)

2006-12-19 Thread Bandler, Derek
Hi, I would like to get information on the software licenses for numpy numeric. On the sourceforge home for the packages, the listed license is OSI-Approved Open Source /softwaremap/trove_list.php?form_cat=14 . Is it possible to get more information on this? A copy of the document would be

Re: [Numpy-discussion] (no subject)

2006-12-19 Thread Greg Willden
Hi Derek, Like all Free Open Source Software (FOSS) projects the license is distributed with the source code. There is a file called LICENSE.txt in the numpy tar archive. Here are the contents of that file. license Copyright (c) 2005, NumPy Developers All rights reserved. Redistribution and use

Re: [Numpy-discussion] (no subject)

2006-12-19 Thread Robert Kern
Bandler, Derek wrote: Hi, I would like to get information on the software licenses for numpy numeric. On the sourceforge home for the packages, the listed license is _OSI-Approved Open Source_ file:///softwaremap/trove_list.php?form_cat=14. Is it possible to get more information on