- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For small whole number (integer) constant powers, is it better to iteratively multiply into a temporary buffer, or use Powx?
What is the tradeoff in performance vs. precision for each approach (recognizing Powx provides optional precisions)?
Thanks!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I think simple iterative multiplication will have a better performance and good precision with small power N. You might just have a simple test with the following two ways, and see which one is better for your data:
ippsPowx_32f_A21( indata, N, ouputdata, length );
or:
for(int j=0;j
ippsMul_32f_I(outputdata, indata,length);
}
Thanks,
Chao
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I think simple iterative multiplication will have a better performance and good precision with small power N. You might just have a simple test with the following two ways, and see which one is better for your data:
ippsPowx_32f_A21( indata, N, ouputdata, length );
or:
for(int j=0;j
ippsMul_32f_I(outputdata, indata,length);
}
Thanks,
Chao
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page