简体   繁体   中英

Matlab choose linear direct sparse solver

I need to solve a sparse linear system in Matalab using the QR solver of SuiteSparse. How can I choose it? I know that, depending on the matrix structure, the QR solver is used when calling the "\\" operator. But I haven't find any way to directly use it. Is there any documentation?

Cheers

From Matlab manual, the least squares approximate solution to A*x = b can be found as:

      R = qr(A);
      x = R\(R'\(A'*b));
      r = b - A*x;
      e = R\(R'\(A'*r));
      x = x + e;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM