- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can Cilk's array notation be used with arrays that have been allocated dynamically with malloc or new (or any arbitrary pointer)? All of the examples show usage based off of a static array.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, you can use array notation on dynamically allocated array... for example:
double* time = new double[NUM_OPTIONS];
time[0:NUM_OPTIONS] = 1.1;
- J.D. Patel
double* time = new double[NUM_OPTIONS];
time[0:NUM_OPTIONS] = 1.1;
- J.D. Patel
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