Re: [Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread Tim Hochberg
R. David wrote: > Hello, > > > >> Try replacing 'int' with intc (or numpy.intc if you are not using >> 'import *'). The following 'works' for me in the sense that it doesn't >> throw any errors (although I imagine the results are nonsense): >> > Thanks, it works now !! > Great. Glad th

Re: [Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread R. David
Hello, > Try replacing 'int' with intc (or numpy.intc if you are not using > 'import *'). The following 'works' for me in the sense that it doesn't > throw any errors (although I imagine the results are nonsense): Thanks, it works now !! Sorry for non including the whole code, I just not wante

Re: [Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread Tim Hochberg
R. David wrote: > Hello Tim, > >> The problem is probably your definition of ipiv. "(DIM)" is just a >> parenthesized scalar, what you probably want is "(DIM,)", which is a >> one-tuple. Personally, I'd recommend using list notation ("[nbrows, >> nbcols]", "[DIM]") rather than tuple notation

Re: [Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread R. David
Hello Tim, > > The problem is probably your definition of ipiv. "(DIM)" is just a > parenthesized scalar, what you probably want is "(DIM,)", which is a > one-tuple. Personally, I'd recommend using list notation ("[nbrows, > nbcols]", "[DIM]") rather than tuple notation since it's both easier t

Re: [Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread Tim Hochberg
R. David wrote: > Hello, > > I am trying to use the lapack_lite dgesv routine. > > The following sample code : > > from numpy import * > [] > a=zeros((nbrows,nbcols),float,order='C') > [] > ipiv=zeros((DIM),int,order='C') > [] > linalg.lapack_lite.dgesv(DIM,1,a,DIM,asarray(ipiv),b,DIM,i

[Numpy-discussion] lapack_lite dgesv

2006-12-11 Thread R. David
Hello, I am trying to use the lapack_lite dgesv routine. The following sample code : from numpy import * [] a=zeros((nbrows,nbcols),float,order='C') [] ipiv=zeros((DIM),int,order='C') [] linalg.lapack_lite.dgesv(DIM,1,a,DIM,asarray(ipiv),b,DIM,info) leads do the followin error messa