Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nguyen_k_
Beginner
345 Views

Calculate determinant for matrix using MKL

Hi, I need to calculate the determinant of a square matrix with MKL(ipp 9.0 - parallel_studio_xe_2016). I searched solution for whole day but still not find the solution.

Which approach should I follow?

Thank you.

0 Kudos
3 Replies
mecej4
Black Belt
345 Views

One way is to perform the permuted LU decomposition using ?getrf(). Those routines replace the input matrix A by L and U, with L having a unit diagonal. Therefore, the determinant is simply evaluated as Πi=1..n (aii) after the call to ?getrf() has returned.

345 Views

Hi,

Are you interested in determinant of sparse or dense matrix? If dense than mecej4 is correct - dgetrf is the way to find it. For sparse matrix dss routine return determinant value

Thanks,

Alex

nguyen_k_
Beginner
345 Views

Thank you all, I'll try ?getrf()

Reply