<?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 Still not fixed in latest in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936983#M14173</link>
    <description>&lt;P&gt;Still not fixed in latest update. What is the holdup please ?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2013 09:12:20 GMT</pubDate>
    <dc:creator>asd__asdqwe</dc:creator>
    <dc:date>2013-10-28T09:12:20Z</dc:date>
    <item>
      <title>Const correctness</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936975#M14165</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This previous question&amp;nbsp;http://software.intel.com/en-us/forums/topic/297849 didn't get any answer. Could someone please tell me why the Sparse BLAS has no const modifiers, whereas the CBLAS is the way it should be (with const modifiers !). It is really "painful" to have to const_cast the parameters at each call to the Sparse BLAS interface.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936975#M14165</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2013-06-27T21:01:05Z</dc:date>
    </item>
    <item>
      <title>Much of the BLAS, LAPACK and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936976#M14166</link>
      <description>&lt;P&gt;Much of the BLAS, LAPACK and other parts of MKL are based on Fortran sources. A clue to this is the passing of arguments by address instead of value when MKL routines are called from C/C++. &amp;nbsp;In Fortran 77 and earlier, there was no distinction between input and output arguments of subprograms as far as the language syntax rules were concerned. It was up to the programmer to preserve the contents of input arrays and document such usage.&lt;/P&gt;
&lt;P&gt;LAPACKE, on the other hand, provides native C interfaces, and helps with matrix arguments by enabling them to be passed in row-major order.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936976#M14166</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-06-27T22:55:00Z</dc:date>
    </item>
    <item>
      <title>I checked you previous thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936977#M14167</link>
      <description>I checked a thread you've mentioned.

&amp;gt;&amp;gt;...&lt;STRONG&gt;Debugging&lt;/STRONG&gt; or proving &lt;STRONG&gt;correctness of code&lt;/STRONG&gt; could be more easier...

I don't think that debugging really matters here but I agree that correctness of code could look better. A &lt;STRONG&gt;const&lt;/STRONG&gt; is recommended to be used when some variable should not be modified.

Why MKL doesn't use &lt;STRONG&gt;const&lt;/STRONG&gt; in declarations of some functions? I think this is a legacy issue.</description>
      <pubDate>Thu, 27 Jun 2013 23:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936977#M14167</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-06-27T23:51:00Z</dc:date>
    </item>
    <item>
      <title>Do you think there is a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936978#M14168</link>
      <description>&lt;P&gt;Do you think there is a change that it will be changed someday, so that CBLAS and Sparse BLAS interfaces match ? (I don't see how you can bring regression by changing const qualifiers, except if you are doing shady things under the hood but I doubt that).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 01:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936978#M14168</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2013-06-28T01:39:12Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...Do you think there is a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936979#M14169</link>
      <description>&amp;gt;&amp;gt;...Do you think there is a change that it will be changed someday, so that CBLAS and Sparse BLAS interfaces match?

I think it is possible and you need to make a &lt;STRONG&gt;Feature Request&lt;/STRONG&gt; with as better as posiible explanation and example(s).</description>
      <pubDate>Fri, 28 Jun 2013 02:12:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936979#M14169</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-06-28T02:12:54Z</dc:date>
    </item>
    <item>
      <title>Quote:qweasd q. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936980#M14170</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;qweasd q. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Do you think there is a change that it will be changed someday, so that CBLAS and Sparse BLAS interfaces match ? (I don't see how you can bring regression by changing const qualifiers, except if you are doing shady things under the hood but I doubt that).&lt;/P&gt;
&lt;P&gt;yes, we have such Feature Request submitted and we will modify these interfaces in the one of the future releases.j&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 06:10:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936980#M14170</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-06-28T06:10:04Z</dc:date>
    </item>
    <item>
      <title>here is the #issue for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936981#M14171</link>
      <description>&lt;P&gt;here is the #issue for your reference -&amp;nbsp;DPD200346477&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 06:19:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936981#M14171</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-06-28T06:19:14Z</dc:date>
    </item>
    <item>
      <title>Quote:Sergey Kostrov wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936982#M14172</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Sergey Kostrov wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;...Do you think there is a change that it will be changed someday, so that CBLAS and Sparse BLAS interfaces match?&lt;/P&gt;
&lt;P&gt;I think it is possible and you need to make a &lt;STRONG&gt;Feature Request&lt;/STRONG&gt; with as better as posiible explanation and example(s).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here is one of the simplest example one could think of:&lt;/P&gt;
&lt;P&gt;[cpp]#include "mkl.h"

int main () {
    MKL_INT*              _I;
    MKL_INT*              _J;
    double*               _C;

    double one = 1;
    double zero = 0;
    const MKL_INT n = 50, k = 50;
    double x&lt;N&gt;;
    double rhs&lt;N&gt;;
    char matdescra[6] = { 'G', '0', '0', 'C', '0', '0' };
    char transa = 'N';
    mkl_dcsrmv(&amp;amp;transa, &amp;amp;n, &amp;amp;k, &amp;amp;one, matdescra, _C, _J, _I, _I + 1, rhs, &amp;amp;one, x);
    // mkl_dcsrmv(&amp;amp;transa, const_cast&amp;lt; int* &amp;gt;(&amp;amp;n), const_cast&amp;lt; int* &amp;gt;(&amp;amp;k), &amp;amp;one, matdescra, _C, _J, _I, _I + 1, rhs, &amp;amp;one, x);
}[/cpp]&lt;/N&gt;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady Fedorov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;here is the #issue for your reference -&amp;nbsp;DPD200346477&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Great, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 13:14:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936982#M14172</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2013-06-28T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Still not fixed in latest</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936983#M14173</link>
      <description>&lt;P&gt;Still not fixed in latest update. What is the holdup please ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 09:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936983#M14173</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2013-10-28T09:12:20Z</dc:date>
    </item>
    <item>
      <title>unfortunatelly , the issue</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936984#M14174</link>
      <description>&lt;P&gt;unfortunatelly , the issue has not been fixed in this update.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:49:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936984#M14174</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-10-28T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936985#M14175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Is it still planned to fix this (trivial) issue ? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 13:59:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936985#M14175</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2014-08-07T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Thank you for the last update</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936986#M14176</link>
      <description>&lt;P&gt;Thank you for the last update. My code is much cleaner now ! The reference manual has not been updated accordingly though.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2014 09:06:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Const-correctness/m-p/936986#M14176</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2014-11-16T09:06:43Z</dc:date>
    </item>
  </channel>
</rss>

