<?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 Let me use my favorite #define K. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788393#M1991</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your useful suggestion. MKL header files are to beimproved for usability.&lt;BR /&gt;&lt;BR /&gt;On the other hand, it's very dangerous using one letter macros names in programs.&lt;BR /&gt;E.g.,MY_K_CONSTANTcould improve readability of your program.</description>
    <pubDate>Sat, 05 Mar 2011 12:39:27 GMT</pubDate>
    <dc:creator>barragan_villanueva_</dc:creator>
    <dc:date>2011-03-05T12:39:27Z</dc:date>
    <item>
      <title>Let me use my favorite #define K.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788392#M1990</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I obtained a lot of error messages from compiler if I
use two strings as below.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;&lt;P&gt;#define K 1./8192.&lt;/P&gt;&lt;P&gt;#include "mkl.h"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;



&lt;PRE&gt;One message is below &lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;MKL\\\\Include\\\\mkl_cblas.h(255): error: expected a ")"&lt;/PRE&gt;&lt;P&gt; const MKL_INT N, const
MKL_INT K, const float *A, const MKL_INT lda,&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I had open mkl_cblas.h and saw &lt;/P&gt;

&lt;BLOCKQUOTE&gt;&lt;P&gt;void cblas_stbmv(, const MKL_INT K,
);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Name of my favorite value is busied. Why
not to use standard definition&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;void cblas_stbmv(, const MKL_INT, );? &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Copy-paste?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2011 08:22:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788392#M1990</guid>
      <dc:creator>dmitry_k</dc:creator>
      <dc:date>2011-03-05T08:22:35Z</dc:date>
    </item>
    <item>
      <title>Let me use my favorite #define K.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788393#M1991</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your useful suggestion. MKL header files are to beimproved for usability.&lt;BR /&gt;&lt;BR /&gt;On the other hand, it's very dangerous using one letter macros names in programs.&lt;BR /&gt;E.g.,MY_K_CONSTANTcould improve readability of your program.</description>
      <pubDate>Sat, 05 Mar 2011 12:39:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788393#M1991</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-03-05T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Let me use my favorite #define K.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788394#M1992</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;BR /&gt;&lt;BR /&gt;Having argument names in header files may help with systems like MS IntelliSense - you see the name of the arg while you type and this helps more than seeng just the type. There are functions with a dozen of arguments, many of them same type, so knowing the name is helpful.&lt;BR /&gt;&lt;BR /&gt;One can always break compilation by defining some name *before* including other header file, no surprise. Is there something thatpreventsputting the definition *after* the header file is included?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Dima&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2011 13:42:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788394#M1992</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2011-03-05T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Let me use my favorite #define K.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788395#M1993</link>
      <description>&lt;P&gt;Hi Victor, Dima,&lt;/P&gt;

&lt;P&gt;Thanks for yours timely answers. I agree what usages of
arguments names are very convenient (e.g. I use it in MS Studio). But I dont understand
why single capital latter is used in MKL header file? If you have a look on MKL
user guide when you can see what functions arguments are lowercase letters or
capital letters with prefix.&lt;/P&gt;

&lt;P&gt;Value K is used in cblas_stbmv function. I believe it is inner routine. Family of the
functions ?tbmv with lowercase letters is available for users.&lt;/P&gt;&lt;P&gt;By the way,
readability of code in software industry and applied computations are different
values. Formulas as in the article it is a good case for me. Unfortunately, I compile multi files project
and cant to swap #define and #include instructions.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 06:07:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Let-me-use-my-favorite-define-K/m-p/788395#M1993</guid>
      <dc:creator>dmitry_k</dc:creator>
      <dc:date>2011-03-09T06:07:04Z</dc:date>
    </item>
  </channel>
</rss>

