<?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 Getting a vector subset in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969416#M20455</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm new to IPP, and I have a somewhat basic question. Suppose I have a vector "v" of float32 values 1-9. I want to take some of the middle values (e.g. 5-7) and assign them to another vector "v_subset." I can't seem to find the function to do that.&amp;nbsp;ippsMove_32f and&amp;nbsp;ippsCopy_32f seem to only allow me to take the first x values of the vector, but I'm interested in a subset from the middle of the vector. Basically, what I'm trying to accomplish is something like the following:&lt;/P&gt;
&lt;P&gt;void main()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;Ipp32f v[9] = {1,2,3,4,5,6,7,8,9};&lt;/P&gt;
&lt;P&gt;Ipp32f v_subset[3];&lt;/P&gt;
&lt;P&gt;\\ some function that sets Ipp32f v_subset equal to {"5 6 7"}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2012 23:30:31 GMT</pubDate>
    <dc:creator>David_B_11</dc:creator>
    <dc:date>2012-12-10T23:30:31Z</dc:date>
    <item>
      <title>Getting a vector subset</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969416#M20455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm new to IPP, and I have a somewhat basic question. Suppose I have a vector "v" of float32 values 1-9. I want to take some of the middle values (e.g. 5-7) and assign them to another vector "v_subset." I can't seem to find the function to do that.&amp;nbsp;ippsMove_32f and&amp;nbsp;ippsCopy_32f seem to only allow me to take the first x values of the vector, but I'm interested in a subset from the middle of the vector. Basically, what I'm trying to accomplish is something like the following:&lt;/P&gt;
&lt;P&gt;void main()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;Ipp32f v[9] = {1,2,3,4,5,6,7,8,9};&lt;/P&gt;
&lt;P&gt;Ipp32f v_subset[3];&lt;/P&gt;
&lt;P&gt;\\ some function that sets Ipp32f v_subset equal to {"5 6 7"}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2012 23:30:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969416#M20455</guid>
      <dc:creator>David_B_11</dc:creator>
      <dc:date>2012-12-10T23:30:31Z</dc:date>
    </item>
    <item>
      <title>Hi David, You need to do this</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969417#M20456</link>
      <description>Hi David, You need to do this:

...
Ipp32f v[9] = {1,2,3,4,5,6,7,8,9};

Ipp32f v_subset[3] = { 0, 0, 0 };

ippsCopy_32f( &amp;amp;v[4], &amp;amp;v_subset[0], 3 );
...</description>
      <pubDate>Tue, 11 Dec 2012 04:44:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969417#M20456</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-12-11T04:44:50Z</dc:date>
    </item>
    <item>
      <title>Works! Thanks Sergey for your</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969418#M20457</link>
      <description>Works! Thanks Sergey for your quick reply and help.
-David</description>
      <pubDate>Tue, 11 Dec 2012 16:30:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Getting-a-vector-subset/m-p/969418#M20457</guid>
      <dc:creator>David_B_11</dc:creator>
      <dc:date>2012-12-11T16:30:27Z</dc:date>
    </item>
  </channel>
</rss>

