- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was wondering if it is possible to create an array of reducers in C?
I already read the documentation, but they use always only one reducer. However, how do I use Cilk reducers for an array with int or double values? Can you give me a short example?
Thanks in advance.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some of the more recent posts on the forum have discussed array reducers in C++. I don't know how easy it would be to do that in C though.
The simplest solution for creating an array reducer in C might be to creating a wrapper for a C++ library that is callable from C code?
Unfortunately, depending on the size of your array, having an array of reducers may not necessarily give you good performance.
Cheers,
Jim
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