culaSgesvd error status 7 and culaGetErrorInfo

Support for issues specific to the Linux operating systems.

culaSgesvd error status 7 and culaGetErrorInfo

Postby jlewi » Mon Feb 08, 2010 10:11 am

I'm calling culaSgeSvd from python using ctypes and I keep getting a return value of 7.
However, when I call culaGetErrorInfo it returns a value of -1.

I thought a status of 7 meant an invalid argument error but if that is the case, why is culaGetErrorInfo returning -1?

thanks
Jeremy
jlewi
 
Posts: 1
Joined: Fri Feb 05, 2010 12:05 am

Re:culaSgesvd error status 7 and culaGetErrorInfo

Postby john » Mon Feb 08, 2010 10:28 am

When we return error 7 (culaArgumentError), we then provide additional information via culaGetErrorInfo().

In your case, a -1 indicates that you have an invalid argument in position 1. (This is an old LAPACK convention, where negative errors indicate argument errors in their respective locations.) Error -1 on gesvd happens when the first parameter (JOBU) is not one of the following letter: ASON. Lowercase letters are permissible as are uppercase.

Is it possible that the argument you are passing in python is being converted into a C-string (ie char*) rather than a plain character?
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest