Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® Integrated Performance Primitives
- Getting a vector subset

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

David_B_11

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-10-2012
03:30 PM

40 Views

Getting a vector subset

Hi,

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. ippsMove_32f and 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:

void main()

{

Ipp32f v[9] = {1,2,3,4,5,6,7,8,9};

Ipp32f v_subset[3];

\\ some function that sets Ipp32f v_subset equal to {"5 6 7"}

}

Thanks for your help!

Link Copied

2 Replies

SergeyKostrov

Valued Contributor II

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-10-2012
08:44 PM

40 Views

David_B_11

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-11-2012
08:30 AM

40 Views

Works! Thanks Sergey for your quick reply and help.
-David

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.