From vanroose at ruca.ua.ac.be Wed May 3 11:17:11 2000 From: vanroose at ruca.ua.ac.be (Vanroose) Date: Wed, 03 May 2000 17:17:11 +0200 Subject: [Numpy-discussion] How to construct a complex matrix in a C module? Message-ID: <391042F7.7C0DCA38@ruca.ua.ac.be> Dear Numerical Python users, I am new to the numerical python and extending python in C. I am making a module that involves the construction of complex matrices. But first, I really want to understand how these matrices are constructed. Here is an example function that constructs a matrix of size M and puts on each position a complex number "x+I y". x and y are arguments when you call the function in python. My question: Is this the right way of organising the construction of a complex matrix. Are there easier ways? Can I construct the matrix directly in "result->data"?? Wim Vanroose static PyObject* matrix(PyObject *self, PyObject *args){ double x,y; int size; int M,n,m; PyArrayObject *result; int dimensions[2]; Py_complex *data; Py_complex p; if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) return NULL; dimensions[0] = M; dimensions[1] = M; data = calloc(M*M+1,sizeof(Py_complex)); for(n=0;n < M;n++){ for(m=0; mdata,data,M*M*sizeof(Py_complex)); return PyArray_Return(result);return PyComplex_FromDoubles(data[1].real,data[1].imag); free(data); } Wim Vanroose From vanroose at ruca.ua.ac.be Wed May 3 11:19:57 2000 From: vanroose at ruca.ua.ac.be (Vanroose Wim) Date: Wed, 03 May 2000 17:19:57 +0200 Subject: [Numpy-discussion] complex matrix in a C module? Program Message-ID: <3910439D.524CBC0B@ruca.ua.ac.be> Dear Numerical Python users, A small mistake when I cut and pasted the program: Here is the program again static PyObject* matrix(PyObject *self, PyObject *args){ double x,y; int size; int M,n,m; PyArrayObject *result; int dimensions[2]; Py_complex *data; Py_complex p; if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) return NULL; dimensions[0] = M; dimensions[1] = M; data = calloc(M*M+1,sizeof(Py_complex)); for(n=0;n < M;n++){ for(m=0; mdata,data,M*M*sizeof(Py_complex)); return PyArray_Return(result); free(data); } From Oliphant.Travis at mayo.edu Wed May 3 03:52:33 2000 From: Oliphant.Travis at mayo.edu (Travis Oliphant) Date: Wed, 3 May 2000 02:52:33 -0500 (CDT) Subject: [Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #50 - 2 msgs In-Reply-To: <200005031911.MAA15448@lists.sourceforge.net> Message-ID: > Dear Numerical Python users, > > I am new to the numerical python and extending python in C. > I am making a module that involves the construction of complex > matrices. But first, I really want to understand how these matrices are > constructed. > Here is an example function that constructs a matrix of size M and > puts on each position a complex number "x+I y". x and y are arguments > when you call the function in python. > > My question: Is this the right way of organising the > construction of a complex matrix. Are there easier ways? > Can I construct the matrix directly in "result->data"?? > Yes, you can create the array, point a pointer to "result->data" and fill it in. Internally, when the array is created an equivalent malloc is performed. I've changed your code below to eliminate the unecessary copying. > > > static PyObject* matrix(PyObject *self, PyObject *args){ > double x,y; > int size; > int M,n,m; > PyArrayObject *result; > int dimensions[2]; > Py_complex *data; > Py_complex p; > if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) > return NULL; > dimensions[0] = M; > dimensions[1] = M; > result = (PyArrayObject > *)PyArray_FromDims(2,dimensions,PyArray_CDOUBLE); > data = result->data; > for(n=0;n < M;n++){ > for(m=0; m p.real=x; > p.imag=y; > data[n*M+m] = p; > } > } > return PyArray_Return(result);return > PyComplex_FromDoubles(data[1].real,data[1].imag); > free(data); > } > Welcome to the wonderful world of NumPy. -Travis From vanroose at ruca.ua.ac.be Thu May 4 05:26:48 2000 From: vanroose at ruca.ua.ac.be (Vanroose Wim) Date: Thu, 04 May 2000 11:26:48 +0200 Subject: [Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #50 - 2 msgs References: Message-ID: <39114258.B369F06C@ruca.ua.ac.be> Dear Travis Oliphant, The pointer result->data is of type (char *). So I still have to do a cast data = (Py_complex *)result->data; Best Wishes Wim Vanroose Travis Oliphant wrote: > Yes, you can create the array, point a pointer to "result->data" and fill > it in. Internally, when the array is created an equivalent malloc is > performed. > > I've changed your code below to eliminate the unecessary copying. > > > > > > static PyObject* matrix(PyObject *self, PyObject *args){ > > double x,y; > > int size; > > int M,n,m; > > PyArrayObject *result; > > int dimensions[2]; > > Py_complex *data; > > Py_complex p; > > if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) > > return NULL; > > dimensions[0] = M; > > dimensions[1] = M; > > > result = (PyArrayObject > > *)PyArray_FromDims(2,dimensions,PyArray_CDOUBLE); > > > data = result->data; > > for(n=0;n < M;n++){ > > for(m=0; m > p.real=x; > > p.imag=y; > > data[n*M+m] = p; > > } > > } > > > return PyArray_Return(result); > > free(data); > > } > > > > Welcome to the wonderful world of NumPy. > > -Travis From mok at imsb.au.dk Fri May 5 12:22:34 2000 From: mok at imsb.au.dk (Morten Kjeldgaard) Date: Fri, 5 May 2000 18:22:34 +0200 (CEST) Subject: [Numpy-discussion] Documentation? Message-ID: Hi, What's up with the NumPy documentation? It seems not to be in the CVS tree. The old documentation is still pretty incomplete IMHO. For example, one of the most important routines "matrixmultiply" is not documented. And the description of "indices" makes your head explode... :-) Also lacking is a description (examples) of how to add Ufuncs in an extension module. Are there any plans of distributing the manual in an editable format (TeX, DocBook...) instead of PDF?? That would make it easier for people to contribute. Cheers, /Morten -- Morten Kjeldgaard | Phone : +45 89 42 50 26 Institute of Molecular and Structural Biology | Fax : +45 86 12 31 78 Aarhus University | Home : +45 86 18 81 80 Gustav Wieds Vej 10 C, DK-8000 Aarhus C, Denmark | icq : 27224900 From pbleyer at embedded.cl Fri May 5 12:21:16 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Fri, 05 May 2000 12:21:16 -0400 Subject: [Numpy-discussion] Documentation? References: Message-ID: <3912F4FC.DD76DA3E@embedded.cl> Morten Kjeldgaard wrote: > Hi, > > What's up with the NumPy documentation? It seems not to be in the CVS > tree. The old documentation is still pretty incomplete IMHO. For example, > one of the most important routines "matrixmultiply" is not documented. And > the description of "indices" makes your head explode... :-) > > Also lacking is a description (examples) of how to add Ufuncs in an > extension module. > > Are there any plans of distributing the manual in an editable format (TeX, > DocBook...) instead of PDF?? That would make it easier for people to > contribute. And I offered myself to contribute some months ago but nobody answered. ... I felt so tiny... ... Nobody heard me... ... Oh, cruel world! ;^) Cheers! -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" ? William Blake From pauldubois at home.com Fri May 5 12:51:33 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Fri, 5 May 2000 09:51:33 -0700 Subject: [Numpy-discussion] Documentation? In-Reply-To: <3912F4FC.DD76DA3E@embedded.cl> Message-ID: The source for the document is on the ftp site. It is in Framemaker 5.5. If anyone wants to improve it they should simply grab it, let everyone know they have it for edit, and return it when done. I have no current plans to convert it to Latex. We had a long previous discussion on this topic. Another way to contribute is simply send me flat text to paste in for some certain topic. From jhauser at ifm.uni-kiel.de Fri May 5 14:25:04 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Fri, 5 May 2000 20:25:04 +0200 (CEST) Subject: [Numpy-discussion] Documentation? In-Reply-To: References: Message-ID: <20000505182505.7062.qmail@lisboa.ifm.uni-kiel.de> So, here is my attempt for an additional piece of NumPy documentation. This is not finished, but before it never gets out the door there is a little Zope magic, so others can give instant feedback to the level of each function. I want to make this as complete as possible in the sense of a function reference. This should not serve as an introduction to NumPy in general, so please have a look and give critiques. The zwiki will be up later this day or tomorrow, I want first to fill in some ideas and discussion topics. One problem is the authorship and license stuff, but I will put this into the zwiki. Have a look at http://lisboa.ifm.uni-kiel.de:80080/NumPy/index_html For corrections or additions there is a small button in the beginning of each function definition, which gives a form for notes. This system can be extended quite a bit, but my time is constraint at the moment. So this is my notice to the list, that I'm doing something :-) HTH, __Janko PS: Please do not yet link this, as this is all not tested. Thanks! From pbleyer at embedded.cl Fri May 5 15:40:25 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Fri, 05 May 2000 15:40:25 -0400 Subject: [Numpy-discussion] Documentation? References: <20000505182505.7062.qmail@lisboa.ifm.uni-kiel.de> Message-ID: <391323A9.C0184CA3@embedded.cl> Janko Hauser wrote: > So, here is my attempt for an additional piece of NumPy > documentation. This is not finished, but before it never gets out the > door there is a little Zope magic, so others can give instant feedback > to the level of each function. Really nice... and modern ;^) > I want to make this as complete as > possible in the sense of a function reference. This should not serve > as an introduction to NumPy in general, so please have a look and give > critiques. I added an issue but the "Numeric" page it crashed... ===== Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: object can't be converted to int ===== > So this is my notice to the list, that I'm doing something :-) > Congratulations. > > HTH, > __Janko > -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" ? William Blake From rob at hooft.net Fri May 5 17:10:54 2000 From: rob at hooft.net (Rob W. W. Hooft) Date: Fri, 5 May 2000 23:10:54 +0200 (CEST) Subject: [Numpy-discussion] Bitten Message-ID: <14611.14558.754466.885391@temoleh.chem.uu.nl> I have to admit that today I have been bitten by NumPy's copy/pointer and 0-order array inconsistency a bit. Easy enough to fix, but a nice catch for somebody new to NumPy: try: a=Numeric.array([1,2,3]) a[0],a[1]=a[1],a[0] print a vs: a=Numeric.array([[1,2,3],[4,5,6],[7,8,9]]) a[0],a[1]=a[1],a[0] print a Regards, Rob Hooft. -- ===== rob at hooft.net http://www.xs4all.nl/~hooft/rob/ ===== ===== R&D, Nonius BV, Delft http://www.nonius.nl/ ===== ===== PGPid 0xFA19277D ========================== Use Linux! ========= From johann at physics.berkeley.edu Fri May 5 17:13:50 2000 From: johann at physics.berkeley.edu (Johann Hibschman) Date: 05 May 2000 14:13:50 -0700 Subject: [Numpy-discussion] LLNL distribution? Message-ID: Hi folks, Is there still a publically available LLNL distribution of NumPy? Or, more precisely, now that NumPy has been spun off as a separate project, where should I look for updates to the Gist module? Is it still available? xfiles.llnl.gov doesn't seem to be there anymore... Cheers, --Johann -- Johann Hibschman johann at physics.berkeley.edu From jhauser at ifm.uni-kiel.de Sat May 6 17:29:51 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Sat, 6 May 2000 23:29:51 +0200 (CEST) Subject: [Numpy-discussion] ZWiki for NumPy Message-ID: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> Sorry some hours after the announcement of the documentation the machine went down. It's now up again, and I have added the ZWiki space for NumPy. A WikiWiki is a HTML page wich can be changed by everyone and with a good culture it is a good way to collect ideas and discuss a project. Everyone can also add new pages about new topics. There is documentation how to use a wiki linked from the pages. This is an experiment, I can not promise to keep this service over the long run. With regards, __Janko From phil at geog.ubc.ca Mon May 8 12:44:29 2000 From: phil at geog.ubc.ca (Phil Austin) Date: Mon, 8 May 2000 09:44:29 -0700 (PDT) Subject: [Numpy-discussion] Frame beta for Linux (was: documentation) In-Reply-To: References: <3912F4FC.DD76DA3E@embedded.cl> Message-ID: <14614.61165.146570.234965@brant.geog.ubc.ca> Paul F. Dubois writes: > The source for the document is on the ftp site. It is in Framemaker 5.5. If > anyone wants to improve it they should simply grab it, let everyone know > they have it for edit, and return it when done. > Note that for the moment, Frame is available at no cost for Linux: http://www.linuxplanet.com/linuxplanet/previews/1812/1/ Phil From pbleyer at embedded.cl Mon May 8 14:31:44 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Mon, 08 May 2000 14:31:44 -0400 Subject: [Numpy-discussion] Frame beta for Linux (was: documentation) References: <3912F4FC.DD76DA3E@embedded.cl> <14614.61165.146570.234965@brant.geog.ubc.ca> Message-ID: <39170810.8E4C15B0@embedded.cl> Phil Austin wrote: > Paul F. Dubois writes: > > The source for the document is on the ftp site. It is in Framemaker 5.5. If > > anyone wants to improve it they should simply grab it, let everyone know > > they have it for edit, and return it when done. > > > > Note that for the moment, Frame is available at no cost for Linux: > > http://www.linuxplanet.com/linuxplanet/previews/1812/1/ > > Phil > But that's a beta and surely Adobe will sell the final product. Not very free-software-friendly ;^) Does FM import SGML? Maybe we can contribute in SGML... though the MathML extensions aren't very standard yet. -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" - William Blake From n8gray at earthlink.net Mon May 8 15:44:27 2000 From: n8gray at earthlink.net (Nathaniel Gray) Date: Mon, 08 May 2000 12:44:27 -0700 Subject: [Numpy-discussion] ZWiki for NumPy References: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> Message-ID: <3917191B.2084DF47@earthlink.net> Janko Hauser wrote: > > Sorry some hours after the announcement of the documentation the > machine went down. It's now up again, and I have added the ZWiki space > for NumPy. What's the URL? -- Nathaniel A. Gray -- "But the sun is going down!" "No, no, you're all confused. The horizon is moving up." -The Firesign Theatre -- PGP Key: http://certserver.pgp.com:11371/pks/lookup?op=get&search=0x95345747 For PGP: http://www.pgpi.com/ From jhauser at ifm.uni-kiel.de Mon May 8 16:26:13 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Mon, 8 May 2000 22:26:13 +0200 (CEST) Subject: [Numpy-discussion] ZWiki for NumPy In-Reply-To: <3917191B.2084DF47@earthlink.net> References: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> <3917191B.2084DF47@earthlink.net> Message-ID: <20000508202613.12430.qmail@lisboa.ifm.uni-kiel.de> Sorry, it's actually linked from the main page, so I forgot to write it eplicitly in the mail. http://lisboa.ifm.uni-kiel.de:80080/NumPy/NaFwiki If I should change something, please send a short note. __Janko From busby at icf.llnl.gov Mon May 8 18:33:19 2000 From: busby at icf.llnl.gov (L. Busby) Date: Mon, 8 May 2000 15:33:19 -0700 Subject: [Numpy-discussion] LLNL distribution? Message-ID: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> [ Johann Hibschman asks ] >Is there still a publically available LLNL distribution of NumPy? > >Or, more precisely, now that NumPy has been spun off as a separate >project, where should I look for updates to the Gist module? Is >it still available? > >xfiles.llnl.gov doesn't seem to be there anymore... The older versions of the LLNL distribution, including the Gist module, continue to be available at ftp-icf.llnl.gov:/pub/python. There haven't been any updates to Gist in well over a year. We (Zane Motteler and I) have zero local customers for it, and a multitude of other programmatic responsibilities. We realize that it would be nice simply to dis-entangle Gist from the old distribution and make it available as a separate Python package, perhaps using Distutils, or not, or as an RPM, or as an SRPM, or as a Debian package. There is no time and no support for this activity. If you the reader would like to undertake the project, you have our blessing. From phil at geog.ubc.ca Mon May 8 18:49:58 2000 From: phil at geog.ubc.ca (Phil Austin) Date: Mon, 8 May 2000 15:49:58 -0700 (PDT) Subject: [Numpy-discussion] LLNL distribution? In-Reply-To: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> References: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> Message-ID: <14615.17558.946637.766391@brant.geog.ubc.ca> L. Busby writes: > > There haven't been any updates to Gist in well over a year. We (Zane > Motteler and I) have zero local customers for it, and a multitude of > other programmatic responsibilities. I'd be interested in learning what's replaced Gist at LLNL -- Dislin? Matlab called via pymat? or is there something better that I haven't stumbled on? Regards, Phil From aurag at crm.umontreal.ca Mon May 8 22:58:17 2000 From: aurag at crm.umontreal.ca (Hassan Aurag) Date: Tue, 09 May 2000 02:58:17 GMT Subject: [Numpy-discussion] HTML/SGML docs Message-ID: <20000509.2581700@adam-aurag.penguinpowered.com> Hi, I think I have asked this question a couple of thousand times, but are there plans to have HTML/SGML docs, or in other words, can we expect to have the source form of this beast. I have reached the point where I know how to integrate a nice gtkhtml (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd like to us it for something. The nifty thing would be for me to have some kind of docbook thinggy. Which means a huge collection of html pages with automagic links to prev, next, up, home..... Then I'd show the contents in one window using a tree-like thing and the rest in another (a real html widget). Thanks again From pauldubois at home.com Tue May 9 10:33:04 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Tue, 9 May 2000 07:33:04 -0700 Subject: [Numpy-discussion] HTML/SGML docs In-Reply-To: <20000509.2581700@adam-aurag.penguinpowered.com> Message-ID: The document source is Framemaker, which can produce HTML and PDF. It would be best to have an collaborative framework such as the Zope one recently announced, if it works well; I haven't tried that yet. > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of Hassan > Aurag > Sent: Monday, May 08, 2000 7:58 PM > To: numpy-discussion at lists.sourceforge.net > Subject: [Numpy-discussion] HTML/SGML docs > > > Hi, > > I think I have asked this question a couple of thousand times, but are > there plans to have HTML/SGML docs, or in other words, can we expect > to have the source form of this beast. > I have reached the point where I know how to integrate a nice gtkhtml > (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd > like to us it for something. The nifty thing would be for me to have > some kind of docbook thinggy. Which means a huge collection of html > pages with automagic links to prev, next, up, home..... Then I'd show > the contents in one window using a tree-like thing and the rest in > another (a real html widget). > Thanks again > > > > > > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion From aurag at CRM.UMontreal.CA Tue May 9 11:38:52 2000 From: aurag at CRM.UMontreal.CA (Hassan Aurag) Date: Tue, 9 May 2000 11:38:52 -0400 (EDT) Subject: [Numpy-discussion] HTML/SGML docs Message-ID: <200005091538.LAA14465@newton.CRM.UMontreal.CA> ------------- Begin Forwarded Message ------------- From aurag Tue May 9 11:37:29 2000 From: aurag (Hassan Aurag) Date: Tue, 9 May 2000 11:37:29 -0400 (EDT) Subject: [Numpy-discussion] HTML/SGML docs Message-ID: Ok, I am looking at suggestions. I have already looked at another NumPy doc that looks like Python online docs. What I really would like to do is have: -A way of retrieving from a stable web page the TOC of documentation that I'd then put in a custom gnome-tree-like widget and when the user clicks on one item it'd open a link to online corresponding page. -An entry widget that'd have a search item that look in index of docs (online) and return all possible choices then when user chooses one show the corresponding page. -A bookmarking facility so that users can go back quickly to places they have seen. -The choice to download the whole .tar.gz thing to browse off-line. All of the above is easy to implement, and I have already started doing so with GMatH (http://gmath.sourceforge.net), provided there is a known stable place where to look for these docs. I already have a place to look for, but I forgot the address. All I need is some nifty .py thing that'd fetch the TOC, and index (from web site) and search through that index. I am not very good with urllib or httpblib, so any help is welcome. Thanks > From: "Paul F. Dubois" > To: "Hassan Aurag" , > Subject: RE: [Numpy-discussion] HTML/SGML docs > Date: Tue, 9 May 2000 07:33:04 -0700 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > > The document source is Framemaker, which can produce HTML and PDF. > > It would be best to have an collaborative framework such as the Zope one > recently announced, if it works well; I haven't tried that yet. > > > > > -----Original Message----- > > From: numpy-discussion-admin at lists.sourceforge.net > > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of Hassan > > Aurag > > Sent: Monday, May 08, 2000 7:58 PM > > To: numpy-discussion at lists.sourceforge.net > > Subject: [Numpy-discussion] HTML/SGML docs > > > > > > Hi, > > > > I think I have asked this question a couple of thousand times, but are > > there plans to have HTML/SGML docs, or in other words, can we expect > > to have the source form of this beast. > > I have reached the point where I know how to integrate a nice gtkhtml > > (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd > > like to us it for something. The nifty thing would be for me to have > > some kind of docbook thinggy. Which means a huge collection of html > > pages with automagic links to prev, next, up, home..... Then I'd show > > the contents in one window using a tree-like thing and the rest in > > another (a real html widget). > > Thanks again > > > > > > > > > > > > > > _______________________________________________ > > Numpy-discussion mailing list > > Numpy-discussion at lists.sourceforge.net > > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion > ------------- End Forwarded Message ------------- From shepard2 at llnl.gov Wed May 10 19:01:35 2000 From: shepard2 at llnl.gov (Thomas Shepard) Date: Wed, 10 May 2000 16:01:35 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Message-ID: >Thought you may like to see this. >Do you know of any other users of the Gist module besides yourself? Everyone who uses Yorick uses the gist package within Yorick, and there are a lot of such people at LLNL and worldwide. Since some major new LLNL production codes will be python based, I predict significant interest in the Python Gist package. Currently, I have heard that Marty Marinak uses the Python Gist package within an LLNL python-based code. I haven't tried to do a survey, so there may well be others. I intend to use it for my work, which would then expose it to my co-workers and collaborators, many of whom already use Yorick with its Gist interface. Gist is a very efficient graphics package, due in part to being written directly to Xlib rather than layered on top of some other interface, and due also to the skill of Gist's author (Dave Munro). (It is also very easy to write additional efficient graphics engines for Gist, as has been done by Steve Langer for windows and macOS.) Gist also has a very well designed interface (both "user friendly" and efficient, an unusual combination) with features that were tailored specifically to the needs of LLNL physicists. In my opinion, it would be a tragedy if Gist were lost. Regarding xfiles.llnl.gov, I am pretty sure that the server is now behind the new LLNL firewall and therefore invisible to the outside world. But it still exists. It would be a good idea to arrange for these packages to be available somewhere where outsiders can get them. > >Lee Taylor > >---------- Forwarded message ---------- >Date: Mon, 8 May 2000 15:33:19 -0700 >From: "L. Busby" >To: johann at physics.berkeley.edu >Cc: motteler at icf.llnl.gov, numpy-discussion at lists.sourceforge.net >Subject: Re: [Numpy-discussion] LLNL distribution? > >[ Johann Hibschman asks ] >>Is there still a publically available LLNL distribution of NumPy? >> >>Or, more precisely, now that NumPy has been spun off as a separate >>project, where should I look for updates to the Gist module? Is >>it still available? >> >>xfiles.llnl.gov doesn't seem to be there anymore... > >The older versions of the LLNL distribution, including the Gist module, >continue to be available at ftp-icf.llnl.gov:/pub/python. > >There haven't been any updates to Gist in well over a year. We (Zane >Motteler and I) have zero local customers for it, and a multitude of >other programmatic responsibilities. We realize that it would be nice >simply to dis-entangle Gist from the old distribution and make it >available as a separate Python package, perhaps using Distutils, or >not, or as an RPM, or as an SRPM, or as a Debian package. There is no >time and no support for this activity. If you the reader would like to >undertake the project, you have our blessing. > >_______________________________________________ >Numpy-discussion mailing list >Numpy-discussion at lists.sourceforge.net >http://lists.sourceforge.net/mailman/listinfo/numpy-discussion Thomas D. Shepard LLNL A Division tdshepard at llnl.gov 925 423 4018 b111 r627 L-31 From shepard2 at llnl.gov Wed May 10 19:42:49 2000 From: shepard2 at llnl.gov (Thomas Shepard) Date: Wed, 10 May 2000 16:42:49 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: <20000510191156.A73190@chipotle.physics.uvm.edu> References: ; from shepard2@llnl.gov on Wed, May 10, 2000 at 04:01:35PM -0700 Message-ID: >Hi Thomas; > >I read with interest your message about Gist. I've been using it with >Python on an SGI and a Linux box. Do packages like Ezplot, etc, run on the >Macintosh? > I think the answer to that is no, unless there is a version of Ezplot I don't know about, which is quite possible. Gist provides all the functionality available in Ezplot and, in my opinion, is easier to use than Ezplot (although Ezplot is not difficult either). There are publicly available Yorick versions that run on windows and macs which use Gist with the corresponding graphics engines. I don't know if anyone has made python modules using the windows or mac versions of the Gist graphics engines. If not, I don't think it would be very hard to do. I wonder if the upcoming mac OS X will support Xlib. Does anybody know? PS: Another great feature of Gist I forgot to mention: It produces great-looking publication-quality output directly. The choice of things like tick marks, line thicknesses, fonts, etc. (which is quasi-infinitely customizable) that Gist makes is very good. In contrast, things that other packages I have used do: Use the thinnest possible lines for everything, presumably because they think someone is going to scale data off the plot using a ruler and need to keep it precise. This results in thin lines that don't reproduce well. Insist on writing unrequested text to the plots (think "core dump"). Write some text on top of other text. Thomas D. Shepard LLNL A Division tdshepard at llnl.gov 925 423 4018 b111 r627 L-31 From johann at physics.berkeley.edu Wed May 10 19:56:11 2000 From: johann at physics.berkeley.edu (Johann Hibschman) Date: 10 May 2000 16:56:11 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Thomas Shepard's message of "Wed, 10 May 2000 16:01:35 -0700" References: Message-ID: Thomas Shepard writes: >> Thought you may like to see this. >> Do you know of any other users of the Gist module besides yourself? > Everyone who uses Yorick uses the gist package within Yorick, and there > are a lot of such people at LLNL and worldwide. Since some major new LLNL > production codes will be python based, I predict significant interest > in the Python Gist package. I do wonder how many users of Yorick there are. I am sure I'm the only one in the Berkeley astronomy department, for example. I will take a look at the Gist source, and see if I can understand it well enough to support it. I haven't used Gist all that much, but I finally found a problem that I couldn't solve with the other graphics packages I know, so I've started using it again. > Regarding xfiles.llnl.gov, I am pretty sure that the server is now > behind the new LLNL firewall and therefore invisible to the outside > world. But it still exists. It would be a good idea to arrange for > these packages to be available somewhere where outsiders can get them. I found LLNLDistribution11 on the ftp-icf site, so I'm set for now. I could look into sourceforge as a distribution site. Then again, I'd like to graduate by December, so I'm likely to be busy on my own projects, stamping down gamma-rays and unruly pair plasmas, without much time for purely programming work. ;-) --Johann -- Johann Hibschman johann at physics.berkeley.edu From taylor at rhino.llnl.gov Wed May 10 20:29:55 2000 From: taylor at rhino.llnl.gov (Lee Taylor) Date: Wed, 10 May 2000 17:29:55 -0700 (PDT) Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Message-ID: On 10 May 2000, Johann Hibschman wrote: > I will take a look at the Gist source, and see if I can understand it > well enough to support it. I haven't used Gist all that much, but I > finally found a problem that I couldn't solve with the other graphics > packages I know, so I've started using it again. > > I found LLNLDistribution11 on the ftp-icf site, so I'm set for now. I > could look into sourceforge as a distribution site. > I believe that the support of Gist is not in question, only the python interface to Gist. The individual (Zane Mottler) who wrote the interface is retiring in 2 months and still has 6 months of work left. That prompted the 'no official support' comment. If there are users here at LLNL (and there are at least a few), I'm sure we could find some support for them. Lee Taylor From managan at llnl.gov Thu May 11 17:07:07 2000 From: managan at llnl.gov (Rob Managan) Date: Thu, 11 May 2000 14:07:07 -0700 Subject: [Numpy-discussion] fast umath In-Reply-To: <200005111911.MAA30452@lists.sourceforge.net> References: <200005111911.MAA30452@lists.sourceforge.net> Message-ID: Is the fast umath module dead? If so lets pull the source code! I ask since the fast_umath source is still there but apparently not updated. The calls PyUFunc_FromFuncAndData have the wrong number of arguments. -- *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- Rob Managan LLNL ph: 925-423-0903 P.O. Box 808, L-095 FAX: 925-422-3389 Livermore, CA 94551-0808 From hinsen at dirac.cnrs-orleans.fr Fri May 12 10:18:14 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Fri, 12 May 2000 16:18:14 +0200 Subject: [Numpy-discussion] fast umath In-Reply-To: (message from Rob Managan on Thu, 11 May 2000 14:07:07 -0700) References: <200005111911.MAA30452@lists.sourceforge.net> Message-ID: <200005121418.QAA06207@chinon.cnrs-orleans.fr> > Is the fast umath module dead? If so lets pull the source code! As far as I know, the idea of separate "fast" and "safe" modules was never realized, and umast and fast_math were identical in the initial releases. Appearantly fast_umath was never updated, so it might as well disappear. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From su96-fst at nada.kth.se Mon May 22 18:10:44 2000 From: su96-fst at nada.kth.se (Fredrik Stenberg) Date: Tue, 23 May 2000 00:10:44 +0200 (MET DST) Subject: [Numpy-discussion] QP and SQP Message-ID: Hi, Has anyone written any quadratic programming algoritm? If so, please let me now. /fredriks From hoel at germanlloyd.org Wed May 24 09:27:00 2000 From: hoel at germanlloyd.org (Berthold Hoellmann) Date: Wed, 24 May 2000 15:27:00 +0200 Subject: [Numpy-discussion] QP and SQP References: Message-ID: <392BD8A4.84541B75@GermanLloyd.org> Fredrik Stenberg wrote: > > Hi, > Has anyone written any quadratic programming algoritm? > If so, please let me now. We have written a wapper around COPL_QP Computational Optimization Program Library: Convex Quadratic Programming from ftp://dollar.biz.uiowa.edu/pub/yyye/. I had to make some minor changes to the qp program to make it work under WindowsNT, but it does now. I have seen the library working under NT, solaris 2.5.1, solaris 2.7 and a Linux system. I don't now where to put the tar file, but when you are interested, I could send you a copy of the library, installable with a recent distutils version. Greetings Berthold -- email: hoel at GermanLloyd.org ) ( C[_] These opinions might be mine, but never those of my employer. From david at davidmarimont.com Wed May 24 11:06:34 2000 From: david at davidmarimont.com (David H. Marimont) Date: Wed, 24 May 2000 08:06:34 -0700 Subject: [Numpy-discussion] using lapack and blas rpms References: <392BD8A4.84541B75@GermanLloyd.org> Message-ID: <392BEFFA.ED0C0295@davidmarimont.com> Hi all, Please let me know if this is the wrong mailing list for this question: I'm running red hat linux 6.2 and have used rpms to install the numpy, lapack, and blas packages. How do I get numpy to use the versions of lapack and blas I've installed? Thanks. David Marimont From hinsen at dirac.cnrs-orleans.fr Thu May 25 11:40:41 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Thu, 25 May 2000 17:40:41 +0200 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: <392BEFFA.ED0C0295@davidmarimont.com> References: <392BD8A4.84541B75@GermanLloyd.org> <392BEFFA.ED0C0295@davidmarimont.com> Message-ID: <200005251540.RAA18823@chinon.cnrs-orleans.fr> > Please let me know if this is the wrong mailing list for this question: > > I'm running red hat linux 6.2 and have used rpms to install the numpy, > lapack, and blas packages. How do I get numpy to use the versions of lapack > and blas I've installed? Thanks. You can't do it with the NumPy RPMs, which use the C versions. So you must get the NumPy source code distribution and compile it yourself. Before compiling it, edit the file "Setup" such that the line starting with "lapack_lite" reads lapack_lite -I./Include Src/lapack_litemodule.c -llapack -lblas -lg2c -lm The compile and install according to the instructions. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From pauldubois at home.com Thu May 25 11:52:22 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Thu, 25 May 2000 08:52:22 -0700 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: <200005251540.RAA18823@chinon.cnrs-orleans.fr> Message-ID: Konrad, These instructions rely on the old way of making numpy. The new way would involve making corresponding changes to setup.py I intend to do this as the default soon as I have had numerous requests for it. Paul > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of > hinsen at dirac.cnrs-orleans.fr > Sent: Thursday, May 25, 2000 8:41 AM > To: david at davidmarimont.com > Cc: numpy-discussion at lists.sourceforge.net > Subject: Re: [Numpy-discussion] using lapack and blas rpms > > > > Please let me know if this is the wrong mailing list for this question: > > > > I'm running red hat linux 6.2 and have used rpms to install the numpy, > > lapack, and blas packages. How do I get numpy to use the > versions of lapack > > and blas I've installed? Thanks. > > You can't do it with the NumPy RPMs, which use the C versions. > So you must get the NumPy source code distribution and compile it > yourself. Before compiling it, edit the file "Setup" such that > the line starting with "lapack_lite" reads > > lapack_lite -I./Include Src/lapack_litemodule.c -llapack -lblas -lg2c -lm > > The compile and install according to the instructions. > -- > ------------------------------------------------------------------ > ------------- > Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr > Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 > Rue Charles Sadron | Fax: +33-2.38.63.15.17 > 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ > France | Nederlands/Francais > ------------------------------------------------------------------ > ------------- > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion > From hinsen at dirac.cnrs-orleans.fr Thu May 25 12:08:23 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Thu, 25 May 2000 18:08:23 +0200 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: References: Message-ID: <200005251608.SAA18870@chinon.cnrs-orleans.fr> > These instructions rely on the old way of making numpy. > The new way would involve making corresponding changes to setup.py > I intend to do this as the default soon as I have had numerous requests for > it. Is it possible with Distutils to use LAPACK if it's installed and the C versions otherwise? That should make everybody happy. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From Oliphant.Travis at mayo.edu Fri May 26 18:33:28 2000 From: Oliphant.Travis at mayo.edu (Travis Oliphant) Date: Fri, 26 May 2000 17:33:28 -0500 (CDT) Subject: [Numpy-discussion] New development tree now on SourceForge. In-Reply-To: <200005241914.MAA30647@lists.sourceforge.net> Message-ID: As I have received several encouraging emails of interested people, I'm excited to announce the availability of an experimental Numerical Python revision on the NumPy SourceForge site. I've placed it under the directoryname numpy2 (checkout that directory according to the CVS instructions). It is NOT COMPLETED yet, so only people interested in a particular view of a future arrayobject or who want to help fashion that view should check it out. Summary: It builds on the current NumPy. Operations should not change on the Python level. Important new operations will be added. C-API is changed but support for backward-near-compatibility is desired and sought after. Only an NDArray class and a Ufunc class along with standard operations on them is set for inclusion in the new development. Other components will be added modules. NDArray: This is a Python class with C-calls placed for speed of certain operations. It is built around a data object which can be any Python object exporting a buffer interface (including a buffer object) and a dimensions/strides object which is also relies on the buffer interface. A C-API gives C-users access to the pointers for this information for any subclass of NDArray. Ufunc: This is a Python class that encapsulates the N-D looping structure with the broadcasting rules. It will allow wrapping of fast C functions as well as Python functions. It basically consists of two attributes: a select function (for type coercion and specification) and a compute function that does the actual computation. Comments and feedback (and especially code) are welcomed. -Travis From pauldubois at home.com Mon May 29 13:28:59 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Mon, 29 May 2000 10:28:59 -0700 Subject: [Numpy-discussion] Revision to MA checked in Message-ID: I have checked into CVS a major improvement to MA, the missing array facility. From hinsen at dirac.cnrs-orleans.fr Wed May 31 04:37:15 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Wed, 31 May 2000 10:37:15 +0200 Subject: [Numpy-discussion] Binaries for Windows? Message-ID: <200005310837.KAA26504@chinon.cnrs-orleans.fr> Is there any place where one can get Windows binaries for NumPy, even if it's not the latest release? SourceForge only has source and Linux binary versions, and the LLNL site doesn't seem to exist any more. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From pauldubois at home.com Wed May 31 09:17:34 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Wed, 31 May 2000 06:17:34 -0700 Subject: [Numpy-discussion] Binaries for Windows? In-Reply-To: <200005310837.KAA26504@chinon.cnrs-orleans.fr> Message-ID: It takes someone making a build on Windows and putting the file on SourceForge. There is a Windows installer for 15.2, just not 15.3 yet. You can find it by looking at the full list of available releases. > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of > hinsen at dirac.cnrs-orleans.fr > Sent: Wednesday, May 31, 2000 1:37 AM > To: numpy-discussion at lists.sourceforge.net > Subject: [Numpy-discussion] Binaries for Windows? > > > Is there any place where one can get Windows binaries for NumPy, even > if it's not the latest release? SourceForge only has source and Linux > binary versions, and the LLNL site doesn't seem to exist any more. > > Konrad. > -- > ------------------------------------------------------------------ > ------------- > Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr > Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 > Rue Charles Sadron | Fax: +33-2.38.63.15.17 > 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ > France | Nederlands/Francais > ------------------------------------------------------------------ > ------------- > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion From vanroose at ruca.ua.ac.be Wed May 3 11:17:11 2000 From: vanroose at ruca.ua.ac.be (Vanroose) Date: Wed, 03 May 2000 17:17:11 +0200 Subject: [Numpy-discussion] How to construct a complex matrix in a C module? Message-ID: <391042F7.7C0DCA38@ruca.ua.ac.be> Dear Numerical Python users, I am new to the numerical python and extending python in C. I am making a module that involves the construction of complex matrices. But first, I really want to understand how these matrices are constructed. Here is an example function that constructs a matrix of size M and puts on each position a complex number "x+I y". x and y are arguments when you call the function in python. My question: Is this the right way of organising the construction of a complex matrix. Are there easier ways? Can I construct the matrix directly in "result->data"?? Wim Vanroose static PyObject* matrix(PyObject *self, PyObject *args){ double x,y; int size; int M,n,m; PyArrayObject *result; int dimensions[2]; Py_complex *data; Py_complex p; if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) return NULL; dimensions[0] = M; dimensions[1] = M; data = calloc(M*M+1,sizeof(Py_complex)); for(n=0;n < M;n++){ for(m=0; mdata,data,M*M*sizeof(Py_complex)); return PyArray_Return(result);return PyComplex_FromDoubles(data[1].real,data[1].imag); free(data); } Wim Vanroose From vanroose at ruca.ua.ac.be Wed May 3 11:19:57 2000 From: vanroose at ruca.ua.ac.be (Vanroose Wim) Date: Wed, 03 May 2000 17:19:57 +0200 Subject: [Numpy-discussion] complex matrix in a C module? Program Message-ID: <3910439D.524CBC0B@ruca.ua.ac.be> Dear Numerical Python users, A small mistake when I cut and pasted the program: Here is the program again static PyObject* matrix(PyObject *self, PyObject *args){ double x,y; int size; int M,n,m; PyArrayObject *result; int dimensions[2]; Py_complex *data; Py_complex p; if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) return NULL; dimensions[0] = M; dimensions[1] = M; data = calloc(M*M+1,sizeof(Py_complex)); for(n=0;n < M;n++){ for(m=0; mdata,data,M*M*sizeof(Py_complex)); return PyArray_Return(result); free(data); } From Oliphant.Travis at mayo.edu Wed May 3 03:52:33 2000 From: Oliphant.Travis at mayo.edu (Travis Oliphant) Date: Wed, 3 May 2000 02:52:33 -0500 (CDT) Subject: [Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #50 - 2 msgs In-Reply-To: <200005031911.MAA15448@lists.sourceforge.net> Message-ID: > Dear Numerical Python users, > > I am new to the numerical python and extending python in C. > I am making a module that involves the construction of complex > matrices. But first, I really want to understand how these matrices are > constructed. > Here is an example function that constructs a matrix of size M and > puts on each position a complex number "x+I y". x and y are arguments > when you call the function in python. > > My question: Is this the right way of organising the > construction of a complex matrix. Are there easier ways? > Can I construct the matrix directly in "result->data"?? > Yes, you can create the array, point a pointer to "result->data" and fill it in. Internally, when the array is created an equivalent malloc is performed. I've changed your code below to eliminate the unecessary copying. > > > static PyObject* matrix(PyObject *self, PyObject *args){ > double x,y; > int size; > int M,n,m; > PyArrayObject *result; > int dimensions[2]; > Py_complex *data; > Py_complex p; > if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) > return NULL; > dimensions[0] = M; > dimensions[1] = M; > result = (PyArrayObject > *)PyArray_FromDims(2,dimensions,PyArray_CDOUBLE); > data = result->data; > for(n=0;n < M;n++){ > for(m=0; m p.real=x; > p.imag=y; > data[n*M+m] = p; > } > } > return PyArray_Return(result);return > PyComplex_FromDoubles(data[1].real,data[1].imag); > free(data); > } > Welcome to the wonderful world of NumPy. -Travis From vanroose at ruca.ua.ac.be Thu May 4 05:26:48 2000 From: vanroose at ruca.ua.ac.be (Vanroose Wim) Date: Thu, 04 May 2000 11:26:48 +0200 Subject: [Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #50 - 2 msgs References: Message-ID: <39114258.B369F06C@ruca.ua.ac.be> Dear Travis Oliphant, The pointer result->data is of type (char *). So I still have to do a cast data = (Py_complex *)result->data; Best Wishes Wim Vanroose Travis Oliphant wrote: > Yes, you can create the array, point a pointer to "result->data" and fill > it in. Internally, when the array is created an equivalent malloc is > performed. > > I've changed your code below to eliminate the unecessary copying. > > > > > > static PyObject* matrix(PyObject *self, PyObject *args){ > > double x,y; > > int size; > > int M,n,m; > > PyArrayObject *result; > > int dimensions[2]; > > Py_complex *data; > > Py_complex p; > > if(!PyArg_ParseTuple(args,"idd",&M,&x,&y)) > > return NULL; > > dimensions[0] = M; > > dimensions[1] = M; > > > result = (PyArrayObject > > *)PyArray_FromDims(2,dimensions,PyArray_CDOUBLE); > > > data = result->data; > > for(n=0;n < M;n++){ > > for(m=0; m > p.real=x; > > p.imag=y; > > data[n*M+m] = p; > > } > > } > > > return PyArray_Return(result); > > free(data); > > } > > > > Welcome to the wonderful world of NumPy. > > -Travis From mok at imsb.au.dk Fri May 5 12:22:34 2000 From: mok at imsb.au.dk (Morten Kjeldgaard) Date: Fri, 5 May 2000 18:22:34 +0200 (CEST) Subject: [Numpy-discussion] Documentation? Message-ID: Hi, What's up with the NumPy documentation? It seems not to be in the CVS tree. The old documentation is still pretty incomplete IMHO. For example, one of the most important routines "matrixmultiply" is not documented. And the description of "indices" makes your head explode... :-) Also lacking is a description (examples) of how to add Ufuncs in an extension module. Are there any plans of distributing the manual in an editable format (TeX, DocBook...) instead of PDF?? That would make it easier for people to contribute. Cheers, /Morten -- Morten Kjeldgaard | Phone : +45 89 42 50 26 Institute of Molecular and Structural Biology | Fax : +45 86 12 31 78 Aarhus University | Home : +45 86 18 81 80 Gustav Wieds Vej 10 C, DK-8000 Aarhus C, Denmark | icq : 27224900 From pbleyer at embedded.cl Fri May 5 12:21:16 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Fri, 05 May 2000 12:21:16 -0400 Subject: [Numpy-discussion] Documentation? References: Message-ID: <3912F4FC.DD76DA3E@embedded.cl> Morten Kjeldgaard wrote: > Hi, > > What's up with the NumPy documentation? It seems not to be in the CVS > tree. The old documentation is still pretty incomplete IMHO. For example, > one of the most important routines "matrixmultiply" is not documented. And > the description of "indices" makes your head explode... :-) > > Also lacking is a description (examples) of how to add Ufuncs in an > extension module. > > Are there any plans of distributing the manual in an editable format (TeX, > DocBook...) instead of PDF?? That would make it easier for people to > contribute. And I offered myself to contribute some months ago but nobody answered. ... I felt so tiny... ... Nobody heard me... ... Oh, cruel world! ;^) Cheers! -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" ? William Blake From pauldubois at home.com Fri May 5 12:51:33 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Fri, 5 May 2000 09:51:33 -0700 Subject: [Numpy-discussion] Documentation? In-Reply-To: <3912F4FC.DD76DA3E@embedded.cl> Message-ID: The source for the document is on the ftp site. It is in Framemaker 5.5. If anyone wants to improve it they should simply grab it, let everyone know they have it for edit, and return it when done. I have no current plans to convert it to Latex. We had a long previous discussion on this topic. Another way to contribute is simply send me flat text to paste in for some certain topic. From jhauser at ifm.uni-kiel.de Fri May 5 14:25:04 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Fri, 5 May 2000 20:25:04 +0200 (CEST) Subject: [Numpy-discussion] Documentation? In-Reply-To: References: Message-ID: <20000505182505.7062.qmail@lisboa.ifm.uni-kiel.de> So, here is my attempt for an additional piece of NumPy documentation. This is not finished, but before it never gets out the door there is a little Zope magic, so others can give instant feedback to the level of each function. I want to make this as complete as possible in the sense of a function reference. This should not serve as an introduction to NumPy in general, so please have a look and give critiques. The zwiki will be up later this day or tomorrow, I want first to fill in some ideas and discussion topics. One problem is the authorship and license stuff, but I will put this into the zwiki. Have a look at http://lisboa.ifm.uni-kiel.de:80080/NumPy/index_html For corrections or additions there is a small button in the beginning of each function definition, which gives a form for notes. This system can be extended quite a bit, but my time is constraint at the moment. So this is my notice to the list, that I'm doing something :-) HTH, __Janko PS: Please do not yet link this, as this is all not tested. Thanks! From pbleyer at embedded.cl Fri May 5 15:40:25 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Fri, 05 May 2000 15:40:25 -0400 Subject: [Numpy-discussion] Documentation? References: <20000505182505.7062.qmail@lisboa.ifm.uni-kiel.de> Message-ID: <391323A9.C0184CA3@embedded.cl> Janko Hauser wrote: > So, here is my attempt for an additional piece of NumPy > documentation. This is not finished, but before it never gets out the > door there is a little Zope magic, so others can give instant feedback > to the level of each function. Really nice... and modern ;^) > I want to make this as complete as > possible in the sense of a function reference. This should not serve > as an introduction to NumPy in general, so please have a look and give > critiques. I added an issue but the "Numeric" page it crashed... ===== Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: object can't be converted to int ===== > So this is my notice to the list, that I'm doing something :-) > Congratulations. > > HTH, > __Janko > -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" ? William Blake From rob at hooft.net Fri May 5 17:10:54 2000 From: rob at hooft.net (Rob W. W. Hooft) Date: Fri, 5 May 2000 23:10:54 +0200 (CEST) Subject: [Numpy-discussion] Bitten Message-ID: <14611.14558.754466.885391@temoleh.chem.uu.nl> I have to admit that today I have been bitten by NumPy's copy/pointer and 0-order array inconsistency a bit. Easy enough to fix, but a nice catch for somebody new to NumPy: try: a=Numeric.array([1,2,3]) a[0],a[1]=a[1],a[0] print a vs: a=Numeric.array([[1,2,3],[4,5,6],[7,8,9]]) a[0],a[1]=a[1],a[0] print a Regards, Rob Hooft. -- ===== rob at hooft.net http://www.xs4all.nl/~hooft/rob/ ===== ===== R&D, Nonius BV, Delft http://www.nonius.nl/ ===== ===== PGPid 0xFA19277D ========================== Use Linux! ========= From johann at physics.berkeley.edu Fri May 5 17:13:50 2000 From: johann at physics.berkeley.edu (Johann Hibschman) Date: 05 May 2000 14:13:50 -0700 Subject: [Numpy-discussion] LLNL distribution? Message-ID: Hi folks, Is there still a publically available LLNL distribution of NumPy? Or, more precisely, now that NumPy has been spun off as a separate project, where should I look for updates to the Gist module? Is it still available? xfiles.llnl.gov doesn't seem to be there anymore... Cheers, --Johann -- Johann Hibschman johann at physics.berkeley.edu From jhauser at ifm.uni-kiel.de Sat May 6 17:29:51 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Sat, 6 May 2000 23:29:51 +0200 (CEST) Subject: [Numpy-discussion] ZWiki for NumPy Message-ID: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> Sorry some hours after the announcement of the documentation the machine went down. It's now up again, and I have added the ZWiki space for NumPy. A WikiWiki is a HTML page wich can be changed by everyone and with a good culture it is a good way to collect ideas and discuss a project. Everyone can also add new pages about new topics. There is documentation how to use a wiki linked from the pages. This is an experiment, I can not promise to keep this service over the long run. With regards, __Janko From phil at geog.ubc.ca Mon May 8 12:44:29 2000 From: phil at geog.ubc.ca (Phil Austin) Date: Mon, 8 May 2000 09:44:29 -0700 (PDT) Subject: [Numpy-discussion] Frame beta for Linux (was: documentation) In-Reply-To: References: <3912F4FC.DD76DA3E@embedded.cl> Message-ID: <14614.61165.146570.234965@brant.geog.ubc.ca> Paul F. Dubois writes: > The source for the document is on the ftp site. It is in Framemaker 5.5. If > anyone wants to improve it they should simply grab it, let everyone know > they have it for edit, and return it when done. > Note that for the moment, Frame is available at no cost for Linux: http://www.linuxplanet.com/linuxplanet/previews/1812/1/ Phil From pbleyer at embedded.cl Mon May 8 14:31:44 2000 From: pbleyer at embedded.cl (Pablo Bleyer Kocik) Date: Mon, 08 May 2000 14:31:44 -0400 Subject: [Numpy-discussion] Frame beta for Linux (was: documentation) References: <3912F4FC.DD76DA3E@embedded.cl> <14614.61165.146570.234965@brant.geog.ubc.ca> Message-ID: <39170810.8E4C15B0@embedded.cl> Phil Austin wrote: > Paul F. Dubois writes: > > The source for the document is on the ftp site. It is in Framemaker 5.5. If > > anyone wants to improve it they should simply grab it, let everyone know > > they have it for edit, and return it when done. > > > > Note that for the moment, Frame is available at no cost for Linux: > > http://www.linuxplanet.com/linuxplanet/previews/1812/1/ > > Phil > But that's a beta and surely Adobe will sell the final product. Not very free-software-friendly ;^) Does FM import SGML? Maybe we can contribute in SGML... though the MathML extensions aren't very standard yet. -- Pablo Bleyer Kocik | pbleyer |"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" - William Blake From n8gray at earthlink.net Mon May 8 15:44:27 2000 From: n8gray at earthlink.net (Nathaniel Gray) Date: Mon, 08 May 2000 12:44:27 -0700 Subject: [Numpy-discussion] ZWiki for NumPy References: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> Message-ID: <3917191B.2084DF47@earthlink.net> Janko Hauser wrote: > > Sorry some hours after the announcement of the documentation the > machine went down. It's now up again, and I have added the ZWiki space > for NumPy. What's the URL? -- Nathaniel A. Gray -- "But the sun is going down!" "No, no, you're all confused. The horizon is moving up." -The Firesign Theatre -- PGP Key: http://certserver.pgp.com:11371/pks/lookup?op=get&search=0x95345747 For PGP: http://www.pgpi.com/ From jhauser at ifm.uni-kiel.de Mon May 8 16:26:13 2000 From: jhauser at ifm.uni-kiel.de (Janko Hauser) Date: Mon, 8 May 2000 22:26:13 +0200 (CEST) Subject: [Numpy-discussion] ZWiki for NumPy In-Reply-To: <3917191B.2084DF47@earthlink.net> References: <20000506212951.731.qmail@lisboa.ifm.uni-kiel.de> <3917191B.2084DF47@earthlink.net> Message-ID: <20000508202613.12430.qmail@lisboa.ifm.uni-kiel.de> Sorry, it's actually linked from the main page, so I forgot to write it eplicitly in the mail. http://lisboa.ifm.uni-kiel.de:80080/NumPy/NaFwiki If I should change something, please send a short note. __Janko From busby at icf.llnl.gov Mon May 8 18:33:19 2000 From: busby at icf.llnl.gov (L. Busby) Date: Mon, 8 May 2000 15:33:19 -0700 Subject: [Numpy-discussion] LLNL distribution? Message-ID: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> [ Johann Hibschman asks ] >Is there still a publically available LLNL distribution of NumPy? > >Or, more precisely, now that NumPy has been spun off as a separate >project, where should I look for updates to the Gist module? Is >it still available? > >xfiles.llnl.gov doesn't seem to be there anymore... The older versions of the LLNL distribution, including the Gist module, continue to be available at ftp-icf.llnl.gov:/pub/python. There haven't been any updates to Gist in well over a year. We (Zane Motteler and I) have zero local customers for it, and a multitude of other programmatic responsibilities. We realize that it would be nice simply to dis-entangle Gist from the old distribution and make it available as a separate Python package, perhaps using Distutils, or not, or as an RPM, or as an SRPM, or as a Debian package. There is no time and no support for this activity. If you the reader would like to undertake the project, you have our blessing. From phil at geog.ubc.ca Mon May 8 18:49:58 2000 From: phil at geog.ubc.ca (Phil Austin) Date: Mon, 8 May 2000 15:49:58 -0700 (PDT) Subject: [Numpy-discussion] LLNL distribution? In-Reply-To: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> References: <200005082233.PAA19219@icf.llnl.gov.llnl.gov> Message-ID: <14615.17558.946637.766391@brant.geog.ubc.ca> L. Busby writes: > > There haven't been any updates to Gist in well over a year. We (Zane > Motteler and I) have zero local customers for it, and a multitude of > other programmatic responsibilities. I'd be interested in learning what's replaced Gist at LLNL -- Dislin? Matlab called via pymat? or is there something better that I haven't stumbled on? Regards, Phil From aurag at crm.umontreal.ca Mon May 8 22:58:17 2000 From: aurag at crm.umontreal.ca (Hassan Aurag) Date: Tue, 09 May 2000 02:58:17 GMT Subject: [Numpy-discussion] HTML/SGML docs Message-ID: <20000509.2581700@adam-aurag.penguinpowered.com> Hi, I think I have asked this question a couple of thousand times, but are there plans to have HTML/SGML docs, or in other words, can we expect to have the source form of this beast. I have reached the point where I know how to integrate a nice gtkhtml (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd like to us it for something. The nifty thing would be for me to have some kind of docbook thinggy. Which means a huge collection of html pages with automagic links to prev, next, up, home..... Then I'd show the contents in one window using a tree-like thing and the rest in another (a real html widget). Thanks again From pauldubois at home.com Tue May 9 10:33:04 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Tue, 9 May 2000 07:33:04 -0700 Subject: [Numpy-discussion] HTML/SGML docs In-Reply-To: <20000509.2581700@adam-aurag.penguinpowered.com> Message-ID: The document source is Framemaker, which can produce HTML and PDF. It would be best to have an collaborative framework such as the Zope one recently announced, if it works well; I haven't tried that yet. > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of Hassan > Aurag > Sent: Monday, May 08, 2000 7:58 PM > To: numpy-discussion at lists.sourceforge.net > Subject: [Numpy-discussion] HTML/SGML docs > > > Hi, > > I think I have asked this question a couple of thousand times, but are > there plans to have HTML/SGML docs, or in other words, can we expect > to have the source form of this beast. > I have reached the point where I know how to integrate a nice gtkhtml > (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd > like to us it for something. The nifty thing would be for me to have > some kind of docbook thinggy. Which means a huge collection of html > pages with automagic links to prev, next, up, home..... Then I'd show > the contents in one window using a tree-like thing and the rest in > another (a real html widget). > Thanks again > > > > > > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion From aurag at CRM.UMontreal.CA Tue May 9 11:38:52 2000 From: aurag at CRM.UMontreal.CA (Hassan Aurag) Date: Tue, 9 May 2000 11:38:52 -0400 (EDT) Subject: [Numpy-discussion] HTML/SGML docs Message-ID: <200005091538.LAA14465@newton.CRM.UMontreal.CA> ------------- Begin Forwarded Message ------------- From aurag Tue May 9 11:37:29 2000 From: aurag (Hassan Aurag) Date: Tue, 9 May 2000 11:37:29 -0400 (EDT) Subject: [Numpy-discussion] HTML/SGML docs Message-ID: Ok, I am looking at suggestions. I have already looked at another NumPy doc that looks like Python online docs. What I really would like to do is have: -A way of retrieving from a stable web page the TOC of documentation that I'd then put in a custom gnome-tree-like widget and when the user clicks on one item it'd open a link to online corresponding page. -An entry widget that'd have a search item that look in index of docs (online) and return all possible choices then when user chooses one show the corresponding page. -A bookmarking facility so that users can go back quickly to places they have seen. -The choice to download the whole .tar.gz thing to browse off-line. All of the above is easy to implement, and I have already started doing so with GMatH (http://gmath.sourceforge.net), provided there is a known stable place where to look for these docs. I already have a place to look for, but I forgot the address. All I need is some nifty .py thing that'd fetch the TOC, and index (from web site) and search through that index. I am not very good with urllib or httpblib, so any help is welcome. Thanks > From: "Paul F. Dubois" > To: "Hassan Aurag" , > Subject: RE: [Numpy-discussion] HTML/SGML docs > Date: Tue, 9 May 2000 07:33:04 -0700 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > > The document source is Framemaker, which can produce HTML and PDF. > > It would be best to have an collaborative framework such as the Zope one > recently announced, if it works well; I haven't tried that yet. > > > > > -----Original Message----- > > From: numpy-discussion-admin at lists.sourceforge.net > > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of Hassan > > Aurag > > Sent: Monday, May 08, 2000 7:58 PM > > To: numpy-discussion at lists.sourceforge.net > > Subject: [Numpy-discussion] HTML/SGML docs > > > > > > Hi, > > > > I think I have asked this question a couple of thousand times, but are > > there plans to have HTML/SGML docs, or in other words, can we expect > > to have the source form of this beast. > > I have reached the point where I know how to integrate a nice gtkhtml > > (gnome html in fact) widget ad browse html docs (HURRAY!). Now I'd > > like to us it for something. The nifty thing would be for me to have > > some kind of docbook thinggy. Which means a huge collection of html > > pages with automagic links to prev, next, up, home..... Then I'd show > > the contents in one window using a tree-like thing and the rest in > > another (a real html widget). > > Thanks again > > > > > > > > > > > > > > _______________________________________________ > > Numpy-discussion mailing list > > Numpy-discussion at lists.sourceforge.net > > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion > ------------- End Forwarded Message ------------- From shepard2 at llnl.gov Wed May 10 19:01:35 2000 From: shepard2 at llnl.gov (Thomas Shepard) Date: Wed, 10 May 2000 16:01:35 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Message-ID: >Thought you may like to see this. >Do you know of any other users of the Gist module besides yourself? Everyone who uses Yorick uses the gist package within Yorick, and there are a lot of such people at LLNL and worldwide. Since some major new LLNL production codes will be python based, I predict significant interest in the Python Gist package. Currently, I have heard that Marty Marinak uses the Python Gist package within an LLNL python-based code. I haven't tried to do a survey, so there may well be others. I intend to use it for my work, which would then expose it to my co-workers and collaborators, many of whom already use Yorick with its Gist interface. Gist is a very efficient graphics package, due in part to being written directly to Xlib rather than layered on top of some other interface, and due also to the skill of Gist's author (Dave Munro). (It is also very easy to write additional efficient graphics engines for Gist, as has been done by Steve Langer for windows and macOS.) Gist also has a very well designed interface (both "user friendly" and efficient, an unusual combination) with features that were tailored specifically to the needs of LLNL physicists. In my opinion, it would be a tragedy if Gist were lost. Regarding xfiles.llnl.gov, I am pretty sure that the server is now behind the new LLNL firewall and therefore invisible to the outside world. But it still exists. It would be a good idea to arrange for these packages to be available somewhere where outsiders can get them. > >Lee Taylor > >---------- Forwarded message ---------- >Date: Mon, 8 May 2000 15:33:19 -0700 >From: "L. Busby" >To: johann at physics.berkeley.edu >Cc: motteler at icf.llnl.gov, numpy-discussion at lists.sourceforge.net >Subject: Re: [Numpy-discussion] LLNL distribution? > >[ Johann Hibschman asks ] >>Is there still a publically available LLNL distribution of NumPy? >> >>Or, more precisely, now that NumPy has been spun off as a separate >>project, where should I look for updates to the Gist module? Is >>it still available? >> >>xfiles.llnl.gov doesn't seem to be there anymore... > >The older versions of the LLNL distribution, including the Gist module, >continue to be available at ftp-icf.llnl.gov:/pub/python. > >There haven't been any updates to Gist in well over a year. We (Zane >Motteler and I) have zero local customers for it, and a multitude of >other programmatic responsibilities. We realize that it would be nice >simply to dis-entangle Gist from the old distribution and make it >available as a separate Python package, perhaps using Distutils, or >not, or as an RPM, or as an SRPM, or as a Debian package. There is no >time and no support for this activity. If you the reader would like to >undertake the project, you have our blessing. > >_______________________________________________ >Numpy-discussion mailing list >Numpy-discussion at lists.sourceforge.net >http://lists.sourceforge.net/mailman/listinfo/numpy-discussion Thomas D. Shepard LLNL A Division tdshepard at llnl.gov 925 423 4018 b111 r627 L-31 From shepard2 at llnl.gov Wed May 10 19:42:49 2000 From: shepard2 at llnl.gov (Thomas Shepard) Date: Wed, 10 May 2000 16:42:49 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: <20000510191156.A73190@chipotle.physics.uvm.edu> References: ; from shepard2@llnl.gov on Wed, May 10, 2000 at 04:01:35PM -0700 Message-ID: >Hi Thomas; > >I read with interest your message about Gist. I've been using it with >Python on an SGI and a Linux box. Do packages like Ezplot, etc, run on the >Macintosh? > I think the answer to that is no, unless there is a version of Ezplot I don't know about, which is quite possible. Gist provides all the functionality available in Ezplot and, in my opinion, is easier to use than Ezplot (although Ezplot is not difficult either). There are publicly available Yorick versions that run on windows and macs which use Gist with the corresponding graphics engines. I don't know if anyone has made python modules using the windows or mac versions of the Gist graphics engines. If not, I don't think it would be very hard to do. I wonder if the upcoming mac OS X will support Xlib. Does anybody know? PS: Another great feature of Gist I forgot to mention: It produces great-looking publication-quality output directly. The choice of things like tick marks, line thicknesses, fonts, etc. (which is quasi-infinitely customizable) that Gist makes is very good. In contrast, things that other packages I have used do: Use the thinnest possible lines for everything, presumably because they think someone is going to scale data off the plot using a ruler and need to keep it precise. This results in thin lines that don't reproduce well. Insist on writing unrequested text to the plots (think "core dump"). Write some text on top of other text. Thomas D. Shepard LLNL A Division tdshepard at llnl.gov 925 423 4018 b111 r627 L-31 From johann at physics.berkeley.edu Wed May 10 19:56:11 2000 From: johann at physics.berkeley.edu (Johann Hibschman) Date: 10 May 2000 16:56:11 -0700 Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Thomas Shepard's message of "Wed, 10 May 2000 16:01:35 -0700" References: Message-ID: Thomas Shepard writes: >> Thought you may like to see this. >> Do you know of any other users of the Gist module besides yourself? > Everyone who uses Yorick uses the gist package within Yorick, and there > are a lot of such people at LLNL and worldwide. Since some major new LLNL > production codes will be python based, I predict significant interest > in the Python Gist package. I do wonder how many users of Yorick there are. I am sure I'm the only one in the Berkeley astronomy department, for example. I will take a look at the Gist source, and see if I can understand it well enough to support it. I haven't used Gist all that much, but I finally found a problem that I couldn't solve with the other graphics packages I know, so I've started using it again. > Regarding xfiles.llnl.gov, I am pretty sure that the server is now > behind the new LLNL firewall and therefore invisible to the outside > world. But it still exists. It would be a good idea to arrange for > these packages to be available somewhere where outsiders can get them. I found LLNLDistribution11 on the ftp-icf site, so I'm set for now. I could look into sourceforge as a distribution site. Then again, I'd like to graduate by December, so I'm likely to be busy on my own projects, stamping down gamma-rays and unruly pair plasmas, without much time for purely programming work. ;-) --Johann -- Johann Hibschman johann at physics.berkeley.edu From taylor at rhino.llnl.gov Wed May 10 20:29:55 2000 From: taylor at rhino.llnl.gov (Lee Taylor) Date: Wed, 10 May 2000 17:29:55 -0700 (PDT) Subject: [Numpy-discussion] LLNL distribution? (fwd) In-Reply-To: Message-ID: On 10 May 2000, Johann Hibschman wrote: > I will take a look at the Gist source, and see if I can understand it > well enough to support it. I haven't used Gist all that much, but I > finally found a problem that I couldn't solve with the other graphics > packages I know, so I've started using it again. > > I found LLNLDistribution11 on the ftp-icf site, so I'm set for now. I > could look into sourceforge as a distribution site. > I believe that the support of Gist is not in question, only the python interface to Gist. The individual (Zane Mottler) who wrote the interface is retiring in 2 months and still has 6 months of work left. That prompted the 'no official support' comment. If there are users here at LLNL (and there are at least a few), I'm sure we could find some support for them. Lee Taylor From managan at llnl.gov Thu May 11 17:07:07 2000 From: managan at llnl.gov (Rob Managan) Date: Thu, 11 May 2000 14:07:07 -0700 Subject: [Numpy-discussion] fast umath In-Reply-To: <200005111911.MAA30452@lists.sourceforge.net> References: <200005111911.MAA30452@lists.sourceforge.net> Message-ID: Is the fast umath module dead? If so lets pull the source code! I ask since the fast_umath source is still there but apparently not updated. The calls PyUFunc_FromFuncAndData have the wrong number of arguments. -- *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- Rob Managan LLNL ph: 925-423-0903 P.O. Box 808, L-095 FAX: 925-422-3389 Livermore, CA 94551-0808 From hinsen at dirac.cnrs-orleans.fr Fri May 12 10:18:14 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Fri, 12 May 2000 16:18:14 +0200 Subject: [Numpy-discussion] fast umath In-Reply-To: (message from Rob Managan on Thu, 11 May 2000 14:07:07 -0700) References: <200005111911.MAA30452@lists.sourceforge.net> Message-ID: <200005121418.QAA06207@chinon.cnrs-orleans.fr> > Is the fast umath module dead? If so lets pull the source code! As far as I know, the idea of separate "fast" and "safe" modules was never realized, and umast and fast_math were identical in the initial releases. Appearantly fast_umath was never updated, so it might as well disappear. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From su96-fst at nada.kth.se Mon May 22 18:10:44 2000 From: su96-fst at nada.kth.se (Fredrik Stenberg) Date: Tue, 23 May 2000 00:10:44 +0200 (MET DST) Subject: [Numpy-discussion] QP and SQP Message-ID: Hi, Has anyone written any quadratic programming algoritm? If so, please let me now. /fredriks From hoel at germanlloyd.org Wed May 24 09:27:00 2000 From: hoel at germanlloyd.org (Berthold Hoellmann) Date: Wed, 24 May 2000 15:27:00 +0200 Subject: [Numpy-discussion] QP and SQP References: Message-ID: <392BD8A4.84541B75@GermanLloyd.org> Fredrik Stenberg wrote: > > Hi, > Has anyone written any quadratic programming algoritm? > If so, please let me now. We have written a wapper around COPL_QP Computational Optimization Program Library: Convex Quadratic Programming from ftp://dollar.biz.uiowa.edu/pub/yyye/. I had to make some minor changes to the qp program to make it work under WindowsNT, but it does now. I have seen the library working under NT, solaris 2.5.1, solaris 2.7 and a Linux system. I don't now where to put the tar file, but when you are interested, I could send you a copy of the library, installable with a recent distutils version. Greetings Berthold -- email: hoel at GermanLloyd.org ) ( C[_] These opinions might be mine, but never those of my employer. From david at davidmarimont.com Wed May 24 11:06:34 2000 From: david at davidmarimont.com (David H. Marimont) Date: Wed, 24 May 2000 08:06:34 -0700 Subject: [Numpy-discussion] using lapack and blas rpms References: <392BD8A4.84541B75@GermanLloyd.org> Message-ID: <392BEFFA.ED0C0295@davidmarimont.com> Hi all, Please let me know if this is the wrong mailing list for this question: I'm running red hat linux 6.2 and have used rpms to install the numpy, lapack, and blas packages. How do I get numpy to use the versions of lapack and blas I've installed? Thanks. David Marimont From hinsen at dirac.cnrs-orleans.fr Thu May 25 11:40:41 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Thu, 25 May 2000 17:40:41 +0200 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: <392BEFFA.ED0C0295@davidmarimont.com> References: <392BD8A4.84541B75@GermanLloyd.org> <392BEFFA.ED0C0295@davidmarimont.com> Message-ID: <200005251540.RAA18823@chinon.cnrs-orleans.fr> > Please let me know if this is the wrong mailing list for this question: > > I'm running red hat linux 6.2 and have used rpms to install the numpy, > lapack, and blas packages. How do I get numpy to use the versions of lapack > and blas I've installed? Thanks. You can't do it with the NumPy RPMs, which use the C versions. So you must get the NumPy source code distribution and compile it yourself. Before compiling it, edit the file "Setup" such that the line starting with "lapack_lite" reads lapack_lite -I./Include Src/lapack_litemodule.c -llapack -lblas -lg2c -lm The compile and install according to the instructions. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From pauldubois at home.com Thu May 25 11:52:22 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Thu, 25 May 2000 08:52:22 -0700 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: <200005251540.RAA18823@chinon.cnrs-orleans.fr> Message-ID: Konrad, These instructions rely on the old way of making numpy. The new way would involve making corresponding changes to setup.py I intend to do this as the default soon as I have had numerous requests for it. Paul > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of > hinsen at dirac.cnrs-orleans.fr > Sent: Thursday, May 25, 2000 8:41 AM > To: david at davidmarimont.com > Cc: numpy-discussion at lists.sourceforge.net > Subject: Re: [Numpy-discussion] using lapack and blas rpms > > > > Please let me know if this is the wrong mailing list for this question: > > > > I'm running red hat linux 6.2 and have used rpms to install the numpy, > > lapack, and blas packages. How do I get numpy to use the > versions of lapack > > and blas I've installed? Thanks. > > You can't do it with the NumPy RPMs, which use the C versions. > So you must get the NumPy source code distribution and compile it > yourself. Before compiling it, edit the file "Setup" such that > the line starting with "lapack_lite" reads > > lapack_lite -I./Include Src/lapack_litemodule.c -llapack -lblas -lg2c -lm > > The compile and install according to the instructions. > -- > ------------------------------------------------------------------ > ------------- > Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr > Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 > Rue Charles Sadron | Fax: +33-2.38.63.15.17 > 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ > France | Nederlands/Francais > ------------------------------------------------------------------ > ------------- > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion > From hinsen at dirac.cnrs-orleans.fr Thu May 25 12:08:23 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Thu, 25 May 2000 18:08:23 +0200 Subject: [Numpy-discussion] using lapack and blas rpms In-Reply-To: References: Message-ID: <200005251608.SAA18870@chinon.cnrs-orleans.fr> > These instructions rely on the old way of making numpy. > The new way would involve making corresponding changes to setup.py > I intend to do this as the default soon as I have had numerous requests for > it. Is it possible with Distutils to use LAPACK if it's installed and the C versions otherwise? That should make everybody happy. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From Oliphant.Travis at mayo.edu Fri May 26 18:33:28 2000 From: Oliphant.Travis at mayo.edu (Travis Oliphant) Date: Fri, 26 May 2000 17:33:28 -0500 (CDT) Subject: [Numpy-discussion] New development tree now on SourceForge. In-Reply-To: <200005241914.MAA30647@lists.sourceforge.net> Message-ID: As I have received several encouraging emails of interested people, I'm excited to announce the availability of an experimental Numerical Python revision on the NumPy SourceForge site. I've placed it under the directoryname numpy2 (checkout that directory according to the CVS instructions). It is NOT COMPLETED yet, so only people interested in a particular view of a future arrayobject or who want to help fashion that view should check it out. Summary: It builds on the current NumPy. Operations should not change on the Python level. Important new operations will be added. C-API is changed but support for backward-near-compatibility is desired and sought after. Only an NDArray class and a Ufunc class along with standard operations on them is set for inclusion in the new development. Other components will be added modules. NDArray: This is a Python class with C-calls placed for speed of certain operations. It is built around a data object which can be any Python object exporting a buffer interface (including a buffer object) and a dimensions/strides object which is also relies on the buffer interface. A C-API gives C-users access to the pointers for this information for any subclass of NDArray. Ufunc: This is a Python class that encapsulates the N-D looping structure with the broadcasting rules. It will allow wrapping of fast C functions as well as Python functions. It basically consists of two attributes: a select function (for type coercion and specification) and a compute function that does the actual computation. Comments and feedback (and especially code) are welcomed. -Travis From pauldubois at home.com Mon May 29 13:28:59 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Mon, 29 May 2000 10:28:59 -0700 Subject: [Numpy-discussion] Revision to MA checked in Message-ID: I have checked into CVS a major improvement to MA, the missing array facility. From hinsen at dirac.cnrs-orleans.fr Wed May 31 04:37:15 2000 From: hinsen at dirac.cnrs-orleans.fr (hinsen at dirac.cnrs-orleans.fr) Date: Wed, 31 May 2000 10:37:15 +0200 Subject: [Numpy-discussion] Binaries for Windows? Message-ID: <200005310837.KAA26504@chinon.cnrs-orleans.fr> Is there any place where one can get Windows binaries for NumPy, even if it's not the latest release? SourceForge only has source and Linux binary versions, and the LLNL site doesn't seem to exist any more. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From pauldubois at home.com Wed May 31 09:17:34 2000 From: pauldubois at home.com (Paul F. Dubois) Date: Wed, 31 May 2000 06:17:34 -0700 Subject: [Numpy-discussion] Binaries for Windows? In-Reply-To: <200005310837.KAA26504@chinon.cnrs-orleans.fr> Message-ID: It takes someone making a build on Windows and putting the file on SourceForge. There is a Windows installer for 15.2, just not 15.3 yet. You can find it by looking at the full list of available releases. > -----Original Message----- > From: numpy-discussion-admin at lists.sourceforge.net > [mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of > hinsen at dirac.cnrs-orleans.fr > Sent: Wednesday, May 31, 2000 1:37 AM > To: numpy-discussion at lists.sourceforge.net > Subject: [Numpy-discussion] Binaries for Windows? > > > Is there any place where one can get Windows binaries for NumPy, even > if it's not the latest release? SourceForge only has source and Linux > binary versions, and the LLNL site doesn't seem to exist any more. > > Konrad. > -- > ------------------------------------------------------------------ > ------------- > Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr > Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 > Rue Charles Sadron | Fax: +33-2.38.63.15.17 > 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ > France | Nederlands/Francais > ------------------------------------------------------------------ > ------------- > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/numpy-discussion