Hi,
I'm newbie to the Intel MKL library and I'm trying to convert a code from Matlab to C using the C interface of Intel MKL routines.
I haven't found a function to achieve the RREF of a matrix in Intel MKL. In fact, the RREF in Matlab performs gaussian elimination with partial pivoting and I want to apply it to a 5x9 matrix.
Here is an example of RREF applied to a 5x9 matrix A
0.8147 0.0975 0.1576 0.1419 0.6557 0.7577 0.7060 0.8235 0.4387
0.9058 0.2785 0.9706 0.4218 0.0357 0.7431 0.0318 0.6948 0.3816
0.1270 0.5469 0.9572 0.9157 0.8491 0.3922 0.2769 0.3171 0.7655
0.9134 0.9575 0.4854 0.7922 0.9340 0.6555 0.0462 0.9502 0.7952
0.6324 0.9649 0.8003 0.9595 0.6787 0.1712 0.0971 0.0344 0.1869
The RREF of A is composed of an 5x5 identity matrix and a 5x4 matrix
1.0000 0 0 0 0 -0.8409 1.9764 -2.4048 -2.7594
0 1.0000 0 0 0 3.7698 -5.9264 8.8249 8.0095
0 0 1.0000 0 0 3.8571 -4.0608 7.6411 7.0677
0 0 0 1.0000 0 -8.0047 9.2175 -17.0036 -15.1016
0 0 0 0 1.0000 2.4444 -1.5157 4.7735 4.4750
I tried to apply the LU factorisation with dgetrf and also the LAPACKE_dgels function but I dindn't get the wanted result.
Thank you for your help