<?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: Ipp equivalent to any(), all() in python in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1270837#M27628</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details.&lt;/P&gt;
&lt;P&gt;We are looking into it we will get back to you with the updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 13:34:50 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2021-04-05T13:34:50Z</dc:date>
    <item>
      <title>Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267279#M27597</link>
      <description>&lt;P&gt;I just want to know if an array has any zero value or all zero values? I wonder what is the most efficient way to do this in Ipp or MKL?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267279#M27597</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-03-24T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re:Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267780#M27602</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;We don't think there is a completely exact replacement of any() and all() (Python Functions) in IPP.&lt;/P&gt;&lt;P&gt;But there are some functions available in IPP that will help to achieve the same task as that of any() and all().&lt;/P&gt;&lt;P&gt;You may use the&lt;B&gt; CountInRange&lt;/B&gt; function that has the capability to count the number of elements lying in between the upper and lower bounds. According to your use-case, you can keep&amp;nbsp;&lt;B&gt;lower bound = -1 and upper bound = 1&lt;/B&gt; which will give the &lt;B&gt;count of 0s&lt;/B&gt; in your array. You can also change the lower and upper bound to get the required results.&lt;/P&gt;&lt;P&gt;The Function call will be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;IppStatus ippsCountInRange_32s(const Ipp32s* pSrc, int len, int* pCounts, Ipp32s lowerBound, Ipp32s upperBound);&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the link below to get more details&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-1-signal-and-data-processing/essential-functions/statistical-functions/countinrange.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-1-signal-and-data-processing/essential-functions/statistical-functions/countinrange.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You may also try using the &lt;B&gt;MinMax&lt;/B&gt; function which will give the minimum value and maximum value among the array of elements.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;If both min and max values are 0, then all elements of the array are 0(can relate to all() function)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;If the only min is 0, then there is at least one element which is 0(&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Calibri, sans-serif;"&gt;can relate to&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt; any() function)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Please refer to the below link for more details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-1-signal-and-data-processing/essential-functions/statistical-functions/minmax.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-1-signal-and-data-processing/essential-functions/statistical-functions/minmax.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you to solve your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:16:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267780#M27602</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-03-25T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267796#M27604</link>
      <description>&lt;P&gt;That is very helpful. Thank you so much. CountRange seems to be the least costy way to do this in Ipp. I was a bit surprised that Ipp does not support this simple logical operation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:57:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267796#M27604</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-03-25T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267803#M27605</link>
      <description>&lt;P&gt;For a follow-on note, I was searching for a suitable function to avoid divide-by-zero before I call the divide function. Otherwise the divide function will throw a divide-by-zero warning. Is there a clever way to avoid this happening?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 14:35:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1267803#M27605</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-03-25T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1270837#M27628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details.&lt;/P&gt;
&lt;P&gt;We are looking into it we will get back to you with the updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 13:34:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1270837#M27628</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-05T13:34:50Z</dc:date>
    </item>
    <item>
      <title>Re:Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1273487#M27643</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Apology for the delay.&lt;/P&gt;&lt;P&gt;The thing is that IPP is mainly focused more on optimizing function performance rather than doing these checks on data elements, b&lt;SPAN style="background-color: var(--lwc-colorBackgroundInput,rgb(255, 255, 255)); color: var(--lwc-colorTextWeak,rgb(62, 62, 60));"&gt;ut you can put some checks while performing these kinds of operations, and IPP's error reporting mechanism will help you to act accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For your use-case, you may also try checking the status code(&lt;B&gt;IppStatus&lt;/B&gt;) returned my IPP functions and this way you can control the application to perform error-related actions.&lt;/P&gt;&lt;P&gt;The status code of divide by zero is &lt;B&gt;ippStsDivisorErr &lt;/B&gt;for more details related to other status codes please follow the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-2-image-processing/intel-integrated-performance-primitives-concepts-1/error-reporting-1.html" rel="noopener noreferrer" target="_blank"&gt;Error Reporting (intel.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope the provided details will help you to solve your issue. Please gives us confirmation if your issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:03:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1273487#M27643</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-14T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re:Ipp equivalent to any(), all() in python</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1275808#M27652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, and as your issue has been resolved we will no longer monitor this thread. If you require any additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:38:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Ipp-equivalent-to-any-all-in-python/m-p/1275808#M27652</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-22T11:38:03Z</dc:date>
    </item>
  </channel>
</rss>

