ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
[Numpy-discussion] lapack_lite dgesv
by R. David other posts by this author
Dec 11 2006 8:45AM messages near this date
Re: [Numpy-discussion] a==b for numpy arrays | Re: [Numpy-discussion] lapack_lite dgesv
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 message :
lapack_lite.LapackError: Parameter ipiv is not of type PyArray_INT in lapack_lite.dgesv

I don't understand the type problem for ipiv !
Indeed, the type of 'a' is OK, ipiv is created the same way than a, but something goes
wrong.
Do you have a clue for this ?

	Regards,
	Romaric
-- 
--------------------------------------
   R. David - david@[...].fr
   Tel. : 03 90 24 45 48  (Fax 45 47)
--------------------------------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Thread:
R. David
Tim Hochberg
R. David
Tim Hochberg
R. David
Tim Hochberg

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved