<?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 divide by zero in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827054#M5248</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Isnan() is not in IPP, you can use it from Intel compiler and add &lt;MATH.H&gt;.&lt;/MATH.H&gt;&lt;/P&gt;&lt;P&gt;Another interesting way to find NaN in the below forum thread.&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/showpost.php?p=146248"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/forums/showpost.php?p=146248" target="_blank"&gt;http://software.intel.com/en-us/forums/showpost.php?p=146248&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2011 04:24:28 GMT</pubDate>
    <dc:creator>Naveen_G_Intel</dc:creator>
    <dc:date>2011-09-21T04:24:28Z</dc:date>
    <item>
      <title>divide by zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827051#M5245</link>
      <description>In matlab, I usually search for NaN's and set it to zero. In some cases a divide by zero is&lt;BR /&gt;unavoidable, like dividing 2 images. What is generally done in Ipp? I am trying to transcode some&lt;BR /&gt;Matlab routines to IPP based versions, and wanted to know what the experts use in such cases?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sid.</description>
      <pubDate>Tue, 20 Sep 2011 06:13:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827051#M5245</guid>
      <dc:creator>siddy</dc:creator>
      <dc:date>2011-09-20T06:13:55Z</dc:date>
    </item>
    <item>
      <title>divide by zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827052#M5246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As I know IPP will not check not a number (NaN), this library is specifically for performance oriented functions. Better to check before applying IPP functions in your application. &lt;/P&gt;&lt;P&gt;Please check these two documents, how IPP handles NaN and other arithmetic operations&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPS/ipps_appendices/ipps_appA_Intro.htm"&gt;http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPS/ipps_appendices/ipps_appA_Intro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPI/ippi_appendices/ippi_appA_Intro.htm"&gt;http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPI/ippi_appendices/ippi_appA_Intro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2011 06:32:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827052#M5246</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2011-09-20T06:32:50Z</dc:date>
    </item>
    <item>
      <title>divide by zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827053#M5247</link>
      <description>Hi Naveen,&lt;BR /&gt; Thanks. What I want is that I can set the divide by zeros to zero in the result per iteration. Since the image regions are zero, they are featureless and uninteresting for the application that I am implementing. If I can set them to zero, then I can ensure that these pixels will not be a part of my calculations, and further, not propogate due to an intended neighborhood operation in subsequent iterations. &lt;BR /&gt;In Matlab, I would just have done Image(find(isnan(Image))) = 0 and carried on. How can I do something similar in IPP ? &lt;BR /&gt;&lt;BR /&gt;Based on the documentation, It seems that a hack could be to represent images as 16sc vectors, and divide, as with 16sc format, x/0 = 0. This seems to be the most vectorized way for me to do this, for now. &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Sid.</description>
      <pubDate>Tue, 20 Sep 2011 17:30:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827053#M5247</guid>
      <dc:creator>siddy</dc:creator>
      <dc:date>2011-09-20T17:30:50Z</dc:date>
    </item>
    <item>
      <title>divide by zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827054#M5248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Isnan() is not in IPP, you can use it from Intel compiler and add &lt;MATH.H&gt;.&lt;/MATH.H&gt;&lt;/P&gt;&lt;P&gt;Another interesting way to find NaN in the below forum thread.&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/showpost.php?p=146248"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/forums/showpost.php?p=146248" target="_blank"&gt;http://software.intel.com/en-us/forums/showpost.php?p=146248&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:24:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/divide-by-zero/m-p/827054#M5248</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2011-09-21T04:24:28Z</dc:date>
    </item>
  </channel>
</rss>

