<?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 Help! Matrix dimensions error in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Matrix-dimensions-error/m-p/871369#M8534</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;for university I need to compute eigenvectors of a symmetric matrix in c. I think it shoul work this way:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;MKL_LAPACK.H&gt;&lt;BR /&gt;&lt;BR /&gt; double myd[3];&lt;BR /&gt; double work[3];&lt;BR /&gt; char cV = 'V';&lt;BR /&gt; char cU = 'L';&lt;BR /&gt; int in = 3;&lt;BR /&gt; int im1 = -1;&lt;BR /&gt; int lda = 3;&lt;BR /&gt; int worki = -1;&lt;BR /&gt; double ww[3];&lt;BR /&gt; int li = -1;&lt;BR /&gt; int lw[3];&lt;BR /&gt; int ok;&lt;BR /&gt; double *test;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt; test = (double*)calloc(lda*in,sizeof(double));&lt;BR /&gt; test[0] = 1;&lt;BR /&gt; test[1] = 2;&lt;BR /&gt; test[2] = 3;&lt;BR /&gt; test[3] = 2;&lt;BR /&gt; test[4] = 5;&lt;BR /&gt; test[5] = 7;&lt;BR /&gt; test[6] = 3;&lt;BR /&gt; test[7] = 7;&lt;BR /&gt; test[8] = 1;&lt;BR /&gt; &lt;BR /&gt; fprintf(stderr,"matrix:\n%lf %lf %lf\n%lf %lf %lf\n%lf %lf %lf\n",test[0],test[3],test[6],test[1],test[4],test[7],test[2],test[5],test[8]);&lt;BR /&gt; dsyevd(&amp;amp;cV,&amp;amp;cU, &amp;amp;in,test, &amp;amp;lda, ww, work,&amp;amp;worki,lw,&amp;amp;li ,&amp;amp;ok);&lt;BR /&gt; fprintf(stderr,"Test: %lf, %lf, %i\n",work[0],ww[0],lw[0]);&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I compiled this without errors using icc or gcc.&lt;BR /&gt;&lt;BR /&gt;If I try to execute this program, i'll recieve an error: &lt;BR /&gt;MKL ERROR: Parameter 3 was incorrect on entry to DSYEVD&lt;BR /&gt;&lt;BR /&gt;I don't understand the problem, couse A is 3x3 Matrix, with order n and lda ist 3 too.&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;BR /&gt;Thanks.&lt;BR /&gt;Bennone&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Problem solved!&lt;BR /&gt;&lt;BR /&gt;set integers length to 32bit&lt;BR /&gt;&lt;/MKL_LAPACK.H&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Mon, 14 Sep 2009 10:06:29 GMT</pubDate>
    <dc:creator>bennone</dc:creator>
    <dc:date>2009-09-14T10:06:29Z</dc:date>
    <item>
      <title>Help! Matrix dimensions error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Matrix-dimensions-error/m-p/871369#M8534</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;for university I need to compute eigenvectors of a symmetric matrix in c. I think it shoul work this way:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;MKL_LAPACK.H&gt;&lt;BR /&gt;&lt;BR /&gt; double myd[3];&lt;BR /&gt; double work[3];&lt;BR /&gt; char cV = 'V';&lt;BR /&gt; char cU = 'L';&lt;BR /&gt; int in = 3;&lt;BR /&gt; int im1 = -1;&lt;BR /&gt; int lda = 3;&lt;BR /&gt; int worki = -1;&lt;BR /&gt; double ww[3];&lt;BR /&gt; int li = -1;&lt;BR /&gt; int lw[3];&lt;BR /&gt; int ok;&lt;BR /&gt; double *test;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt; test = (double*)calloc(lda*in,sizeof(double));&lt;BR /&gt; test[0] = 1;&lt;BR /&gt; test[1] = 2;&lt;BR /&gt; test[2] = 3;&lt;BR /&gt; test[3] = 2;&lt;BR /&gt; test[4] = 5;&lt;BR /&gt; test[5] = 7;&lt;BR /&gt; test[6] = 3;&lt;BR /&gt; test[7] = 7;&lt;BR /&gt; test[8] = 1;&lt;BR /&gt; &lt;BR /&gt; fprintf(stderr,"matrix:\n%lf %lf %lf\n%lf %lf %lf\n%lf %lf %lf\n",test[0],test[3],test[6],test[1],test[4],test[7],test[2],test[5],test[8]);&lt;BR /&gt; dsyevd(&amp;amp;cV,&amp;amp;cU, &amp;amp;in,test, &amp;amp;lda, ww, work,&amp;amp;worki,lw,&amp;amp;li ,&amp;amp;ok);&lt;BR /&gt; fprintf(stderr,"Test: %lf, %lf, %i\n",work[0],ww[0],lw[0]);&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I compiled this without errors using icc or gcc.&lt;BR /&gt;&lt;BR /&gt;If I try to execute this program, i'll recieve an error: &lt;BR /&gt;MKL ERROR: Parameter 3 was incorrect on entry to DSYEVD&lt;BR /&gt;&lt;BR /&gt;I don't understand the problem, couse A is 3x3 Matrix, with order n and lda ist 3 too.&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;BR /&gt;Thanks.&lt;BR /&gt;Bennone&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Problem solved!&lt;BR /&gt;&lt;BR /&gt;set integers length to 32bit&lt;BR /&gt;&lt;/MKL_LAPACK.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:06:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Matrix-dimensions-error/m-p/871369#M8534</guid>
      <dc:creator>bennone</dc:creator>
      <dc:date>2009-09-14T10:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Matrix dimensions error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Matrix-dimensions-error/m-p/871370#M8535</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/442896"&gt;bennone&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;&lt;STRONG&gt;Problem solved!&lt;BR /&gt;&lt;BR /&gt;set integers length to 32bit&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Benjamin,&lt;BR /&gt;question - what was your original length of integer when you encountered the problem?&lt;BR /&gt;--Gennady</description>
      <pubDate>Tue, 15 Sep 2009 09:25:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Matrix-dimensions-error/m-p/871370#M8535</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-15T09:25:08Z</dc:date>
    </item>
  </channel>
</rss>

