Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

QRDecomposition using LAPACK package

$
0
0

Hello,

I am doing QR decomposition using LAPACKE_dgeqrf() function.
Strangely it works fine on my windows Desktop but when I run same code on other windows desktop it gives error as 5th parameter is illegal.

Here is the example,

Double input[5][4] = { 1, 2, 3, 4
5, 6, 7, 8,
9, 10, 11, 12,
13, 14, 15, 16,
17, 18, 19, 20 };

Input is converted to 1D array.

double test[20] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };
double tau[4] = { 0 };

lapack_int status ;
status = LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, 5, 4, test, 4, tau);

Here, above function returns status '0' on my desktop but on other windows desktop it returns status as '-5'.

Anyone have any idea, what is going wrong here?


Viewing all articles
Browse latest Browse all 2652

Trending Articles



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