Page 1 of 1

culaSgesvd error status 7 and culaGetErrorInfo

PostPosted: Mon Feb 08, 2010 10:11 am
by jlewi
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

Re:culaSgesvd error status 7 and culaGetErrorInfo

PostPosted: Mon Feb 08, 2010 10:28 am
by john
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?