The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

MKL Error: Parameter 6 was incorrect on entry on DGETRI

Open discussion regarding features, bugs, issues, vendors, etc.

MKL Error: Parameter 6 was incorrect on entry on DGETRI

Postby ssylee » Wed Jan 14, 2009 2:09 pm

I have been getting the message in the heading from calling the function as below:

Code: Select all
dgetri_( &N, A, &LDA, IPIV, wk, &LWK, &INFO );


Before I copy and paste the information given on the parameters, what would be the most common reason of getting that error? Is it from inversing a matrix that's not invertible? I tried inverting an identity matrix and got the same problem as well.
ssylee
 
Posts: 7
Joined: Tue Jan 13, 2009 8:45 pm

Re: MKL Error: Parameter 6 was incorrect on entry on DGETRI

Postby Julien Langou » Wed Jan 14, 2009 7:15 pm

The error message is pretty clear: you parameter LWK is not correct.
First it needs to be an INTEGER ( int ), then it needs to be either greater than MAX(1,N) (regular call) or it needs to be -1.
Keep in mind that LWK is the size of the array WORK.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 5 guests