Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Intel MKL ERROR: Parameter 12 was incorrect on entry to SGELSD

$
0
0

Hello all,

I encountered this error while I was trying to solve linear least square problem, ||Ax-b||. Trying to solve ([A](-1)b) to get x vector. MATLAB solves it like (A\b) and gives the correct answer.

I have properly followed the procedure given in 

https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/dgelsd_ex.f.htm

But when I am trying to use this subroutine (SGELSD) with my matrix A and B, which are of size (135x135) and (135x6) respectively, it throws the above mentioned error. My A matrix is singular, as its determinant is zero.

Matlab solves these ||Ax-b||, and gives the correct answer, so A and B matrix are good. I am reading these two matrices (A and b) in my fortran code.

Sorry for such a long post!!!!!!!!!

Thanks
 

Zone: 

Thread Topic: 

Help Me

Viewing all articles
Browse latest Browse all 3005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>