- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
int arrA[]={1,2,3,..........100};
I want to get arrB={100,.......3,2,1};
What's the fastest fun?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I want to get arrA={100,.......3,2,1},too;
What's the fastest fun?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MKL doesn't have such functions, but you may have a look at the existing IPP functionality ( ippsFlip_*,* or ippsSortAscend/Descend ).
https://software.intel.com/en-us/node/502149.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
C++ reverse_copy() is optimized for the designated architecture by Intel C++ and g++. A plain loop would work as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way, note that "Rotate" is not an apt word for what you want to do. "Reverse", "Reflect" or the more flippant "Flip" would be more appropriate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gennady Fedorov (Intel) wrote:
MKL doesn't have such functions, but you may have a look at the existing IPP functionality ( ippsFlip_*,* or ippsSortAscend/Descend ).
https://software.intel.com/en-us/node/502149.
ok,thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim P. wrote:
C++ reverse_copy() is optimized for the designated architecture by Intel C++ and g++. A plain loop would work as well.
ok thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mecej4 wrote:
By the way, note that "Rotate" is not an apt word for what you want to do. "Reverse", "Reflect" or the more flippant "Flip" would be more appropriate.
yes, you are right.

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