<?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 Re: Question: 2d array in C language for Lapack fortran library in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893807#M10649</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;The example relates to statically allocated arrays, it won't work for malloc()ed data. &lt;A title="dynamically allocated matrix in C" href="http://software.intel.com/en-us/forums/showthread.php?t=65786"&gt;Similar question &lt;/A&gt;was asked with respect to 2D Fourier transforms.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Dima&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2009 16:09:42 GMT</pubDate>
    <dc:creator>Dmitry_B_Intel</dc:creator>
    <dc:date>2009-05-28T16:09:42Z</dc:date>
    <item>
      <title>Question: 2d array in C language for Lapack fortran library.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893804#M10646</link>
      <description>can someone help me ?&lt;BR /&gt;I need to use lapack functions is C.&lt;BR /&gt;&lt;BR /&gt;for example,&lt;BR /&gt;&lt;BR /&gt;dgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy) for matrix vector multiplication or&lt;BR /&gt;dgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info) for LS solution using QR factorization,&lt;BR /&gt;&lt;BR /&gt;Can someone inform me &lt;BR /&gt;how to define the 2 D array and 1 D array correctly ?formatrix a and vector b in above functions ?&lt;BR /&gt;&lt;BR /&gt; I was using one - d array instead of 2 -d like&lt;BR /&gt;&lt;BR /&gt;a[100] instead of a[10][10] and put the elements in a[100] as column based format and used for above functions,&lt;BR /&gt;dgemv worked but dgels give me segmentation faults error.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Joon.</description>
      <pubDate>Wed, 27 May 2009 16:05:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893804#M10646</guid>
      <dc:creator>kimjoonshikgmail_com</dc:creator>
      <dc:date>2009-05-27T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question: 2d array in C language for Lapack fortran library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893805#M10647</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/429860"&gt;kimjoonshikgmail.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;can someone help me ?&lt;BR /&gt;I need to use lapack functions is C.&lt;BR /&gt;&lt;BR /&gt;for example,&lt;BR /&gt;&lt;BR /&gt;dgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy) for matrix vector multiplication or&lt;BR /&gt;dgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info) for LS solution using QR factorization,&lt;BR /&gt;&lt;BR /&gt;Can someone inform me &lt;BR /&gt;how to define the 2 D array and 1 D array correctly ?formatrix a and vector b in above functions ?&lt;BR /&gt;&lt;BR /&gt; I was using one - d array instead of 2 -d like&lt;BR /&gt;&lt;BR /&gt;a[100] instead of a[10][10] and put the elements in a[100] as column based format and used for above functions,&lt;BR /&gt;dgemv worked but dgels give me segmentation faults error.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Joon.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Joon,&lt;BR /&gt;&lt;BR /&gt;this &lt;A href="http://www.physics.utah.edu/~detar/phys6720/handouts/lapack.html"&gt;example&lt;/A&gt; should help.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 00:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893805#M10647</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-05-28T00:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question: 2d array in C language for Lapack fortran library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893806#M10648</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/342379"&gt;ArturGuzik&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;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Joon,&lt;BR /&gt;&lt;BR /&gt;this &lt;A href="http://www.physics.utah.edu/~detar/phys6720/handouts/lapack.html"&gt;example&lt;/A&gt; should help.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thank you A.</description>
      <pubDate>Thu, 28 May 2009 16:00:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893806#M10648</guid>
      <dc:creator>kimjoonshikgmail_com</dc:creator>
      <dc:date>2009-05-28T16:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question: 2d array in C language for Lapack fortran library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893807#M10649</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;The example relates to statically allocated arrays, it won't work for malloc()ed data. &lt;A title="dynamically allocated matrix in C" href="http://software.intel.com/en-us/forums/showthread.php?t=65786"&gt;Similar question &lt;/A&gt;was asked with respect to 2D Fourier transforms.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Dima&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2009 16:09:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-2d-array-in-C-language-for-Lapack-fortran-library/m-p/893807#M10649</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2009-05-28T16:09:42Z</dc:date>
    </item>
  </channel>
</rss>

