culaSgesvd error status 7 and culaGetErrorInfo
2 posts
• Page 1 of 1
culaSgesvd error status 7 and culaGetErrorInfo
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
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
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?
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: 568
- Joined: Thu Jul 23, 2009 2:31 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
