<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use mkl to solve large scale sparse least square prb? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876681#M9018</link>
    <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;I understand this is more of a math problem than a software one&lt;BR /&gt;But i do hope some people can give me some hints&lt;BR /&gt;&lt;BR /&gt;My problem is of the type classic: Ax=b and A is my Jacobian matrix(the orginal least square prb is nonlinear, i use gauss-newton method)&lt;BR /&gt;and A is sparse and rectangle&lt;BR /&gt;for the moment i use the normal equations: A'Ax=A'b&lt;BR /&gt;and for this i use functions in sparse blas&lt;BR /&gt;and then i solve the resulting system with pardiso&lt;BR /&gt;&lt;BR /&gt;i'm sure there are some better ways to do this&lt;BR /&gt;for the moment i'm still struggling to make this most 'simple' method work&lt;BR /&gt;&lt;BR /&gt;thanks in advance</description>
    <pubDate>Fri, 19 Jun 2009 11:51:31 GMT</pubDate>
    <dc:creator>liunsteingmail_com</dc:creator>
    <dc:date>2009-06-19T11:51:31Z</dc:date>
    <item>
      <title>How to use mkl to solve large scale sparse least square prb?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876681#M9018</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;I understand this is more of a math problem than a software one&lt;BR /&gt;But i do hope some people can give me some hints&lt;BR /&gt;&lt;BR /&gt;My problem is of the type classic: Ax=b and A is my Jacobian matrix(the orginal least square prb is nonlinear, i use gauss-newton method)&lt;BR /&gt;and A is sparse and rectangle&lt;BR /&gt;for the moment i use the normal equations: A'Ax=A'b&lt;BR /&gt;and for this i use functions in sparse blas&lt;BR /&gt;and then i solve the resulting system with pardiso&lt;BR /&gt;&lt;BR /&gt;i'm sure there are some better ways to do this&lt;BR /&gt;for the moment i'm still struggling to make this most 'simple' method work&lt;BR /&gt;&lt;BR /&gt;thanks in advance</description>
      <pubDate>Fri, 19 Jun 2009 11:51:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876681#M9018</guid>
      <dc:creator>liunsteingmail_com</dc:creator>
      <dc:date>2009-06-19T11:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use mkl to solve large scale sparse least square prb</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876682#M9019</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/430573"&gt;liunsteingmail.com&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;My problem is of the type classic: Ax=b and A is my Jacobian matrix(the orginal least square prb is nonlinear, i use gauss-newton method)&lt;BR /&gt;and A is sparse and rectangle&lt;BR /&gt;for the moment i use the normal equations: A'Ax=A'b&lt;BR /&gt;and for this i use functions in sparse blas&lt;BR /&gt;and then i solve the resulting system with pardiso&lt;BR /&gt;&lt;BR /&gt;i'm sure there are some better ways to do this&lt;BR /&gt;for the moment i'm still struggling to make this most 'simple' method work&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;if youre problem is non-linear and you try to use normal equations approach in between, it sounds like asking for trouble. The're two approaches for solving linear LS problem, one based on QR decomposition and the other using SVD (for more tricky things). See Numerical Recipes for a discussion on that (I believe it's in Chapter on data modelling). For a start you can just try MKL routines for that (LAPACK for LS) which offer (copying from the docs):&lt;BR /&gt;&lt;BR /&gt;bd bidiagonal matrix&lt;BR /&gt;ge general matrix&lt;BR /&gt;gb general band matrix&lt;BR /&gt;hs upper Hessenberg matrix&lt;BR /&gt;or (real) orthogonal matrix&lt;BR /&gt;op (real) orthogonal matrix (packed storage) &lt;BR /&gt;un (complex) unitary matrix&lt;BR /&gt;up (complex) unitary matrix (packed storage) &lt;BR /&gt;pt symmetric or Hermitian positive-definite tridiagonal matrix&lt;BR /&gt;sy symmetric matrix&lt;BR /&gt;sp symmetric matrix (packed storage) &lt;BR /&gt;sb (real) symmetric band matrix&lt;BR /&gt;st (real) symmetric tridiagonal matrix&lt;BR /&gt;he Hermitian matrix&lt;BR /&gt;hp Hermitian matrix (packed storage) &lt;BR /&gt;hb (complex) Hermitian band matrix&lt;BR /&gt;tr triangular or quasi-triangular matrix.&lt;BR /&gt;&lt;BR /&gt;But, what you actually should try is MKL reverse communication, to try to manage your original (non-linear) problem. Is the sparsity that significant it's worth going through this?&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Jun 2009 06:50:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876682#M9019</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-06-20T06:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use mkl to solve large scale sparse least square prb</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876683#M9020</link>
      <description>Hi thanks for the reply&lt;BR /&gt;I didn't consider lapack for a LS solution since the matrix is really huge and i have to take advantage of the sparsity. otherwise the problem will be intracable.&lt;BR /&gt;&lt;BR /&gt;I have read some theories on LS problem. espetially the classic reference books from SIAM. but it's another story putting these theories in pratice. actually i would just like an outline of the solution. things like what are the major steps when dealing with this problem. and what are the mkl functions people use to solve them.&lt;BR /&gt;&lt;BR /&gt;I have great difficulties understanding the parameters in mkl functions even with the lengthy user manual. the meaning of most of the function arguments i can not find in matrix computation books. so in the end i don't know how to choose them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Jun 2009 16:46:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876683#M9020</guid>
      <dc:creator>liunsteingmail_com</dc:creator>
      <dc:date>2009-06-21T16:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use mkl to solve large scale sparse least square prb</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876684#M9021</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have great difficulties understanding the parameters in mkl functions even with the lengthy user manual. the meaning of most of the function arguments i can not find in matrix computation books. so in the end i don't know how to choose them.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;With parameters should no problem. MKL people can always respond to any related issues. That's for sure. I believe your main concern should be the non-linearity of the problem.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jun 2009 00:04:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876684#M9021</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-06-22T00:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use mkl to solve large scale sparse least square prb</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876685#M9022</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I had once a book on that. It listed software packages and some implementation details. &lt;A href="http://books.google.com/books?id=ZecsDBMz5-IC&amp;amp;pg=PA215&amp;amp;lpg=PA215&amp;amp;dq=sparse+least+squares&amp;amp;source=bl&amp;amp;ots=pu0fInYPI3&amp;amp;sig=qscecdLW_09okeC87yMHDd_vuyA&amp;amp;hl=en&amp;amp;ei=sck-SpvYL9OCkQWp-LzIDg&amp;amp;sa=X&amp;amp;oi=book_result&amp;amp;ct=result&amp;amp;resnum=10"&gt;See here.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Dis you try &lt;A href="http://www.stanford.edu/group/SOL/software/lsqr.html"&gt;these routines&lt;/A&gt;?&lt;BR /&gt;&lt;BR /&gt;From the comments inside:&lt;BR /&gt;&lt;BR /&gt; !-------------------------------------------------------------------&lt;BR /&gt; ! lstp  generates a sparse least-squares test problem of the form&lt;BR /&gt; !           (   A    )*x = ( b ) &lt;BR /&gt; !           ( damp*I )     ( 0 )&lt;BR /&gt; ! for solution by LSQR, or a sparse underdetermined system&lt;BR /&gt; !            Ax + damp*s = b&lt;BR /&gt; ! for solution by LSQR or CRAIG.  The matrix A is m by n and is&lt;BR /&gt; ! constructed in the form  A = Y*D*Z,  where D is an m by n&lt;BR /&gt; ! diagonal matrix, and Y and Z are Householder transformations.&lt;BR /&gt; !&lt;BR /&gt; ! m and n may contain any positive values.&lt;BR /&gt; ! If m &amp;gt;= n  or  damp = 0, the true solution is x as given.&lt;BR /&gt; ! Otherwise, x is modified to contain the true solution.&lt;BR /&gt;&lt;BR /&gt;Anyway, If you decide to stuck with MKL, and you have some difficulty in calling MKL I'm sure somebody can assist and make code working. You just need to post more details.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jun 2009 00:15:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-use-mkl-to-solve-large-scale-sparse-least-square-prb/m-p/876685#M9022</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-06-22T00:15:26Z</dc:date>
    </item>
  </channel>
</rss>

