<?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 General question. Seeing error in lower digits when doing simple dgemm example in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148649#M26933</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to MKL. I started by doing a basic example which creates an NxM matrix A.&amp;nbsp; A consists of random numbers between -1 and 1 and can contain one digit after the decimal point only. For example, -0.1 might be there but not -0.12&lt;/P&gt;&lt;P&gt;I then used dgemm to calculate A*Atranspose.&lt;/P&gt;&lt;P&gt;I compared the answer to my manual calculation&lt;/P&gt;&lt;P&gt;For some elements, there appears to be some error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if my manual calculation calculates 123.45 then dgemm is returning 123.45000000006789 . The lower digits are obviously junk as it is simply a sum of products of numbers to one decimal place each.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expected behaviour?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2019 16:27:26 GMT</pubDate>
    <dc:creator>RJ5</dc:creator>
    <dc:date>2019-11-28T16:27:26Z</dc:date>
    <item>
      <title>General question. Seeing error in lower digits when doing simple dgemm example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148649#M26933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to MKL. I started by doing a basic example which creates an NxM matrix A.&amp;nbsp; A consists of random numbers between -1 and 1 and can contain one digit after the decimal point only. For example, -0.1 might be there but not -0.12&lt;/P&gt;&lt;P&gt;I then used dgemm to calculate A*Atranspose.&lt;/P&gt;&lt;P&gt;I compared the answer to my manual calculation&lt;/P&gt;&lt;P&gt;For some elements, there appears to be some error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if my manual calculation calculates 123.45 then dgemm is returning 123.45000000006789 . The lower digits are obviously junk as it is simply a sum of products of numbers to one decimal place each.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expected behaviour?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 16:27:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148649#M26933</guid>
      <dc:creator>RJ5</dc:creator>
      <dc:date>2019-11-28T16:27:26Z</dc:date>
    </item>
    <item>
      <title>yes, this is an expected</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148650#M26934</link>
      <description>&lt;P&gt;yes, this is an expected rounding error results&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 04:50:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148650#M26934</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-12-04T04:50:43Z</dc:date>
    </item>
    <item>
      <title>Thank you very much for the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148651#M26935</link>
      <description>&lt;P&gt;Thank you very much for the response. Is there any advised way to handle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was surprised to see it as I thought it would just be a simple "sumproduct" type of calculation for numbers exact to one significant digit, and therefore that each product would be exact, but I guess that there is some optimisation going on underneath.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 21:31:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148651#M26935</guid>
      <dc:creator>RJ5</dc:creator>
      <dc:date>2019-12-04T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Your inputs cannot be</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148652#M26936</link>
      <description>&lt;P&gt;Your inputs cannot be represented exactly as binary floating point numbers. Try googling for "ieee 754 calculator".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 19:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148652#M26936</guid>
      <dc:creator>Hinds__David</dc:creator>
      <dc:date>2019-12-29T19:18:20Z</dc:date>
    </item>
    <item>
      <title>RJ: Your manual calculations</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148653#M26937</link>
      <description>&lt;P&gt;RJ: Your manual calculations will not match the computed results unless both were performed using the same number system. In particular, if your manual calculations were performed using base 10, you should expect differences.&lt;/P&gt;&lt;P&gt;Consider the number 0.1&lt;SUB&gt;10&lt;/SUB&gt;. Its mantissa can be expressed exactly in decimal with a single significant digit. In IEEE-64 bit binary, even 53 bits are not sufficient to represent the same number exactly.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/General-question-Seeing-error-in-lower-digits-when-doing-simple/m-p/1148653#M26937</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-01-02T11:26:00Z</dc:date>
    </item>
  </channel>
</rss>

