- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm working with the Composer XE 2013 software in an algorithm that operates with vectors. After making a convolution between two vectors, I need to get a part of the resulting vector, but with an offset. I mean, like having [3 2 6 1 5] and then get [2 6 1]. As the result of the convolution is 72000 elements long I don't want to use a "for" because it'll decreased the algorithm performance. So, I was looking for a specific function in your documentation but I couldn't. I attach what my problem is. I hope you can help me. Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Isaak,
I don't see any problem here - the easiest way is just to shift your pointer:
Ipp64f pDst[72020];
Ipp64f *pDst1;
...........
pDst1 = pDst + 10;
...........
regards, Igor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Isaac,
What do you mean under "to get a part of resulting vector"? Move it to somewhere else? Start working with it as with a separate object?
Why don't you create a new "double*" pointer variable with correct initial address asignment and use it as new vector reference?
Regards,
Sergey
P.S. Oops, sorry. Igor came first :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hehe don't worry. I did what you two mention and I could continue developing my software. I really appreciate both of you for your help :D
Regards,
Isaac
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page