Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lin__ziije
Beginner
145 Views

is there any MKL function can outputs L matrix of cholesky decomposition

I want to solve some linear equations(Ax=b) with same matrix A and different vector b. So i decided to decompose matrix A with cholesky decomposition to get matrix L  (A= LT*L).

Is there any MKL function can  outputs L matrix of cholesky decomposition, i have tried some other library, but most of them can not directly output  matrix L.

 

0 Kudos
5 Replies
Kirill_V_Intel
Employee
145 Views

Hello,

Is the matrix sparse or dense? Intel MKL provides a way in both cases to solve one system with multiple right-hand sides but functionality is different. If you just want to solve with multiple right-hand sides, you don't actually need the matrix L. So, is there something else which you didn't mention in your description?

Thanks,
Kirill

lin__ziije
Beginner
145 Views

Voronin, Kirill (Intel) wrote:

Hello,

Is the matrix sparse or dense? Intel MKL provides a way in both cases to solve one system with multiple right-hand sides but functionality is different. If you just want to solve with multiple right-hand sides, you don't actually need the matrix L. So, is there something else which you didn't mention in your description?

Thanks,
Kirill

 

thanks  for your answer. Matrix A is a 5000x5000 matrix with about 60,000 (0.25%) none zeros elements. I actually need the matrix L for  follow-up work. 

so, MKL can not output matrix L driectly?

Kirill_V_Intel
Employee
145 Views

I see. For such a tiny matrix and such sparsity I believe there is no need to use sparse matrices. Have a look at https://software.intel.com/en-us/onemkl-developer-reference-c-getrf from LAPACK.

Best,
Kirill

lin__ziije
Beginner
145 Views

Voronin, Kirill (Intel) wrote:

I see. For such a tiny matrix and such sparsity I believe there is no need to use sparse matrices. Have a look at https://software.intel.com/en-us/onemkl-developer-reference-c-getrf from LAPACK.

Best,
Kirill

I will try it, by the way ,have you ever try to solve problem like mine, do you know how long will take to do cholesky or LU decomposition. my program is run on a server with 2  Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz.

Gennady_F_Intel
Moderator
145 Views

you may take a look at the published perf results for some of mkl's factorizations routines from intel mkl product page - https://software.intel.com/en-us/mkl/features/benchmarks

Reply