<?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 Missing Max Function? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947022#M18252</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;An example of something I often have to do - I have a vector with (say) 1024 floating point values and I want the maximum of every 8 values, i.e.&lt;/P&gt;

&lt;P&gt;output[0] = max (input, 0 to 7)&lt;BR /&gt;
	output[1] = max (input,&amp;nbsp;8 to 15)&lt;BR /&gt;
	output[2] = max (input,&amp;nbsp;15 to 23)&lt;BR /&gt;
	etc.&lt;BR /&gt;
	&lt;BR /&gt;
	So what's the correct / most efficient way to do this? I don't think there's a function...&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 29 Dec 2013 10:24:44 GMT</pubDate>
    <dc:creator>Simon_B_</dc:creator>
    <dc:date>2013-12-29T10:24:44Z</dc:date>
    <item>
      <title>Missing Max Function?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947022#M18252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;An example of something I often have to do - I have a vector with (say) 1024 floating point values and I want the maximum of every 8 values, i.e.&lt;/P&gt;

&lt;P&gt;output[0] = max (input, 0 to 7)&lt;BR /&gt;
	output[1] = max (input,&amp;nbsp;8 to 15)&lt;BR /&gt;
	output[2] = max (input,&amp;nbsp;15 to 23)&lt;BR /&gt;
	etc.&lt;BR /&gt;
	&lt;BR /&gt;
	So what's the correct / most efficient way to do this? I don't think there's a function...&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2013 10:24:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947022#M18252</guid>
      <dc:creator>Simon_B_</dc:creator>
      <dc:date>2013-12-29T10:24:44Z</dc:date>
    </item>
    <item>
      <title>There may be a better answer,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947023#M18253</link>
      <description>&lt;P&gt;There may be a better answer, but based on this description I think you're correct that this is not covered by a single function.&amp;nbsp;&amp;nbsp;It may be&amp;nbsp;possible to work in a loop across this vector where you compute the maximum for every 8 values separately.&amp;nbsp;&amp;nbsp;You may want to check whether it is faster to use&amp;nbsp;an IPP function on these very short&amp;nbsp;vectors or write your&amp;nbsp;own max function.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Depending on future use of this data you may be able to combine steps after computing the max inside this loop for greater cache efficiency.&amp;nbsp; That is an advantage you will get with looping over shorter vectors that would not be available by calling a single IPP function to go over the entire array.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 20:35:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947023#M18253</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2013-12-31T20:35:25Z</dc:date>
    </item>
    <item>
      <title>Hi Jeffrey,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947024#M18254</link>
      <description>&lt;P&gt;Hi Jeffrey,&lt;/P&gt;

&lt;P&gt;Pretty well my conclusion. Having made extensive use of the ipps functions, I miss only two:&lt;/P&gt;

&lt;P&gt;1) ippsFMODF_32f&lt;BR /&gt;
	2) As I described above.&lt;/P&gt;

&lt;P&gt;I couldn't live without IPP :) .&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 20:40:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947024#M18254</guid>
      <dc:creator>Simon_B_</dc:creator>
      <dc:date>2013-12-31T20:40:09Z</dc:date>
    </item>
    <item>
      <title>HI Simon, </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947025#M18255</link>
      <description>&lt;P&gt;HI Simon,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Just add one piece. If you have Intel composer product, you can try array notation, which can operate array in simple way.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example, C[:]=A[:]+B[:].&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for (i&amp;lt;0; i&amp;lt;length; i+=8)&lt;/P&gt;

&lt;P&gt;&lt;SAMP class="codeph"&gt;b[:]=__sec_reduce_max(a&lt;I&gt;);&lt;/I&gt;&lt;/SAMP&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;SAMP class="codeph"&gt;Best Regards,&lt;/SAMP&gt;&lt;/P&gt;

&lt;P&gt;&lt;SAMP class="codeph"&gt;Ying&amp;nbsp;&lt;/SAMP&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 02:07:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Missing-Max-Function/m-p/947025#M18255</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-01-02T02:07:51Z</dc:date>
    </item>
  </channel>
</rss>

