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

solve ill-conditioned linear system

$
0
0

Hello,

I would like to solve a linear system Ax = b with :

         int ia[10] = {1, 5, 9, 11, 15, 19, 21, 23, 25, 26};
         int ja[25] = {1, 2, 4, 5, 2, 3, 5, 6, 3, 6, 4, 5, 7, 8, 5, 6, 8, 9, 6, 9, 7, 8, 8, 9, 9};
         double a[25] = {
         40.2991,  2.5049,                0.929679,  2.44749,
                         40.2991, 2.5049,                   0.929679,  2.44749,
                                        40.2991,                                   0.929679,
                                                     40.2991,    2.5049,                       0.929679,   2.44749,
                                                                       40.2991,    2.5049,                        0.929679,  2.44749,
                                                                                         40.2991,                                        0.929679,
                                                                                                          40.2991,     2.5049,
                                                                                                                             40.2991,    2.5049,
                                                                                                                                               40.2991
                                                                                              };
 
         double rhs[9] = {3.40521, 3.55851, 30.0158, 39300.2, 41805.2, 2506.73, 930.681, 3378.17, 2448.49};

but it returns me a wrong result.

Is there an iparm for detecting ill-conditionned linear systems (to make me sure this is the problem), and in this case how can I solve this problem?

Thanks for any help you can ive 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>