<?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: Const correctness of dgbtrs and friends in mkl_lapack.h? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880420#M9456</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/414472"&gt;Rhys Ulerich&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;Any reason why the C interface to LAPACK's dgbtrf doesn't provide a const correct argument for ab and ipiv?
&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;void dgbtrs( char* trans, MKL_INT* n, MKL_INT* kl, MKL_INT* ku, MKL_INT* nrhs, double* ab, MKL_INT* ldab, MKL_INT* ipiv, double* b, MKL_INT* ldb, MKL_INT* info );&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;It doesn't seem like the factored matrix or its pivots should be touched at all during the solve process.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;It is guaranteed that the content of arguments that used only as input parameters will not be changed during function execution. 'const' modifier is redundant here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Art&lt;BR /&gt;</description>
    <pubDate>Fri, 20 Nov 2009 15:51:44 GMT</pubDate>
    <dc:creator>Artem_V_Intel</dc:creator>
    <dc:date>2009-11-20T15:51:44Z</dc:date>
    <item>
      <title>Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880419#M9455</link>
      <description>Any reason why the C interface to LAPACK's dgbtrf doesn't provide a const correct argument for ab and ipiv?
&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;void dgbtrs( char* trans, MKL_INT* n, MKL_INT* kl, MKL_INT* ku, MKL_INT* nrhs, double* ab, MKL_INT* ldab, MKL_INT* ipiv, double* b, MKL_INT* ldb, MKL_INT* info );&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;It doesn't seem like the factored matrix or its pivots should be touched at all during the solve process.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Nov 2009 00:01:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880419#M9455</guid>
      <dc:creator>Rhys_Ulerich</dc:creator>
      <dc:date>2009-11-20T00:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880420#M9456</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/414472"&gt;Rhys Ulerich&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;Any reason why the C interface to LAPACK's dgbtrf doesn't provide a const correct argument for ab and ipiv?
&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;void dgbtrs( char* trans, MKL_INT* n, MKL_INT* kl, MKL_INT* ku, MKL_INT* nrhs, double* ab, MKL_INT* ldab, MKL_INT* ipiv, double* b, MKL_INT* ldb, MKL_INT* info );&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;It doesn't seem like the factored matrix or its pivots should be touched at all during the solve process.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;It is guaranteed that the content of arguments that used only as input parameters will not be changed during function execution. 'const' modifier is redundant here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Nov 2009 15:51:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880420#M9456</guid>
      <dc:creator>Artem_V_Intel</dc:creator>
      <dc:date>2009-11-20T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880421#M9457</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Hi Rhys,&lt;/P&gt;
&lt;P&gt;Your question is not entirely clear to me. So I'll try to answer in general.&lt;/P&gt;
&lt;P&gt;Arrays ab and ipiv are as returned by dgbtrf on the entry dbgtrs.&lt;/P&gt;
&lt;P&gt;Arrays ab and ipiv are not changed within dgbtrs. The same is for n, kl, ku, nrhs, ldab and ldb arguments. All of them have not "const" specifier. You can't find "const" anywhere in the mkl_lapack.h. Of course this is not good enough and may be fixed in the further MKLreleases. In any case it has not impact on the functionality of the interfaces. See also CLAPACK thread: &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=61234"&gt;http://software.intel.com/en-us/forums/showthread.php?t=61234&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:50:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880421#M9457</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2009-11-23T11:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880422#M9458</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/93629"&gt;Vladimir Koldakov (Intel)&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;Arrays ab and ipiv are not changed within dgbtrs. The same is for n, kl, ku, nrhs, ldab and ldb arguments. All of them have not "const" specifier. You can't find "const" anywhere in the mkl_lapack.h. Of course this is not good enough and may be fixed in the further MKLreleases. In any case it has not impact on the functionality of the interfaces. See also CLAPACK thread: &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=61234"&gt;http://software.intel.com/en-us/forums/showthread.php?t=61234&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks Vladimir, that helps.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Nov 2009 16:20:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880422#M9458</guid>
      <dc:creator>Rhys_Ulerich</dc:creator>
      <dc:date>2009-11-30T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880423#M9459</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/438571"&gt;Artem Vorobiev (Intel)&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;
It is guaranteed that the content of arguments that used only as input parameters will not be changed during function execution. 'const' modifier is redundant here.&lt;/EM&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the response Art. The guarentee that the input parameters won't be changed is exactly what const means. It's not redundant because including const in the interface would cause the compiler to enforce this semantic.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Nov 2009 16:23:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880423#M9459</guid>
      <dc:creator>Rhys_Ulerich</dc:creator>
      <dc:date>2009-11-30T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Const correctness of dgbtrs and friends in mkl_lapack.h?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880424#M9460</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
The need to pass via reference is a Fortran/C one, but I agree that they should be const.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Nov 2009 20:21:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness-of-dgbtrs-and-friends-in-mkl-lapack-h/m-p/880424#M9460</guid>
      <dc:creator>mfactor</dc:creator>
      <dc:date>2009-11-30T20:21:54Z</dc:date>
    </item>
  </channel>
</rss>

