Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Robert Kern
On Tue, Mar 1, 2011 at 18:40, Jon Olav Vik wrote: > Robert Kern gmail.com> writes: >> > Within a single machine, that sounds fine. What about processes running on >> > different nodes, with different main memories? >> >> You mean mmaping a file on a shared file system? > > Yes. GPFS, I believe, p

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Sturla Molden
Den 01.03.2011 14:20, skrev Jon Olav Vik: > Use case: Generate "large" output for "many" parameter scenarios. > 1. Preallocate "enormous" output file on disk. > That's not a usecase, because this will in general require 64-bit, for which the offset parameter does not matter. > Maybe that is impo

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Jon Olav Vik
Robert Kern gmail.com> writes: > > Within a single machine, that sounds fine. What about processes running on > > different nodes, with different main memories? > > You mean mmaping a file on a shared file system? Yes. GPFS, I believe, presumably this: http://en.wikipedia.org/wiki/GPFS Horrible

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Robert Kern
On Tue, Mar 1, 2011 at 17:06, Jon Olav Vik wrote: > Robert Kern gmail.com> writes: >> >> It's up to the virtual memory manager, but usually, it will just load >> >> those pages (chunks the size of mmap.PAGESIZE) that are touched by >> >> your request and write them back. >> > >> > What if two pro

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Jon Olav Vik
Robert Kern gmail.com> writes: > >> It's up to the virtual memory manager, but usually, it will just load > >> those pages (chunks the size of mmap.PAGESIZE) that are touched by > >> your request and write them back. > > > > What if two processes touch adjacent chunks that are smaller than a page?

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Robert Kern
On Tue, Mar 1, 2011 at 15:36, Jon Olav Vik wrote: > Robert Kern gmail.com> writes: >> >> >> You can have each of those processes memory-map the whole file and >> >> >> just operate on their own slices. Your operating system's virtual >> >> >> memory manager should handle all of the details for yo

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Jon Olav Vik
Robert Kern gmail.com> writes: > >> >> You can have each of those processes memory-map the whole file and > >> >> just operate on their own slices. Your operating system's virtual > >> >> memory manager should handle all of the details for you. > > > > Wow, I didn't know that. So as long as the ra

[Numpy-discussion] Webinar 3/4: How do I… solve ODEs? Part II

2011-03-01 Thread Amenity Applewhite
March EPD Webinar: How do I...solve ODEs? Part II This Friday, Warren Weckesser will present a second installment of his webinars on differential equations. We will explore two Python packages for solving boundary value problems. Both are packaged as scikits: scikits.bvp_solver, written by John S

Re: [Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Andre Lopes
Hi, Thanks for the reply. I think my problem will be to get some knowledge on some math subjects. What kind of subjects in math I need to get knowledge to be able to work in this field(indicators for financial products)? Best Regards, On Tue, Mar 1, 2011 at 7:17 PM, Christopher Barker wrote

Re: [Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Christopher Barker
On 3/1/11 10:55 AM, Andre Lopes wrote: > I'm not okay with linear interpolation. Well, odds are that the crossing point won't be exactly at a data point, so you need to do SOME kind of interpolation. You could use a higher order interpolation (cubic spline, etc): see the interpolation routines

Re: [Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Andre Lopes
Hi Joe, Thanks for the reply. I'm not okay with linear interpolation. Can you suggest me some books around this subject. I will mainly try to build some indicator for the stock market. If you can give me a clue I would be appreciated. Best Regards, On Tue, Mar 1, 2011 at 5:23 PM, Joe Kington

Re: [Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Joe Kington
Hi Andre, Assuming that you want the exact point (date and value) where each crossing occurs, you'll need to interpolate where they cross. There are a number of different ways to do so, but assuming you're okay with linear interpolation, and everything's sampled on the same dates, you can simply

Re: [Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Keith Goodman
On Tue, Mar 1, 2011 at 8:07 AM, Andre Lopes wrote: > Hi, > > I'm new to Numpy. I'm doing some tests with some Stock Market Quotes > > My struggle right now is "how to get the values of the moving averages > crosses", I send an image in attach to illustrate what I'm trying to > get. > > I'm using t

[Numpy-discussion] How to get the prices of Moving Averages Crosses?

2011-03-01 Thread Andre Lopes
Hi, I'm new to Numpy. I'm doing some tests with some Stock Market Quotes My struggle right now is "how to get the values of the moving averages crosses", I send an image in attach to illustrate what I'm trying to get. I'm using the this computation to get when the moving averages crosses, but wh

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Robert Kern
On Tue, Mar 1, 2011 at 07:20, Jon Olav Vik wrote: > Robert Kern gmail.com> writes: > >> On Mon, Feb 28, 2011 at 18:50, Sturla Molden molden.no> wrote: >> > Den 01.03.2011 01:15, skrev Robert Kern: >> >> You can have each of those processes memory-map the whole file and >> >> just operate on thei

Re: [Numpy-discussion] {zeros, empty, ...}_like functions behavior with subclasses

2011-03-01 Thread Wes McKinney
On Mon, Feb 28, 2011 at 10:52 PM, Wes McKinney wrote: > On Mon, Feb 28, 2011 at 7:24 PM, Pierre GM wrote: >> >> On Mar 1, 2011, at 1:05 AM, Bruce Southey wrote: >> >>> On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney wrote: I'm having some trouble with the zeros_like function via np.fix:

[Numpy-discussion] [ANN] Summer School "Advanced Scientific Programming in Python" in St Andrews, UK

2011-03-01 Thread Tiziano Zito
Advanced Scientific Programming in Python = a Summer School by the G-Node and the School of Psychology, University of St Andrews Scientists spend more and more time writing, maintaining, and debugging software. While techniques for doing this efficiently h

Re: [Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-03-01 Thread Jon Olav Vik
Robert Kern gmail.com> writes: > On Mon, Feb 28, 2011 at 18:50, Sturla Molden molden.no> wrote: > > Den 01.03.2011 01:15, skrev Robert Kern: > >> You can have each of those processes memory-map the whole file and > >> just operate on their own slices. Your operating system's virtual > >> memory

Re: [Numpy-discussion] tensordot?

2011-03-01 Thread Neal Becker
Neal Becker wrote: > Can tensordot do this (or some other operator?) > > r[l,i,j] = \sum_k w[i,j,k] y[l,k] Looks like r = tensordot (w, y, axes=(2,1)) will produce r[i,j,l], so transpose (r, (2,0,1)) will do it. ___ NumPy-Discussion mailing list Nu

[Numpy-discussion] tensordot?

2011-03-01 Thread Neal Becker
Can tensordot do this (or some other operator?) r[l,i,j] = \sum_k w[i,j,k] y[l,k] ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion