I suppose you need array of similar streams. That is, all streams will have same dimension and same length.
Maybe it's worth to try use Stream constructor for single stream allocation?
Smth like this:
unsigned int size=STREAM_SIZE;
brook::Stream< int > (*sarray)[sarray_len];
for(int i=0;i < sarray_len; i++ )
sarray[ i ]=new brook::Stream< int >(1,&size);
This sounds perfect, an array of similar streams works great for me. All I need is for the number of streams allocated to be dynamic. I'll try this out when I get the chance, thanks a lot!
EDIT: This actually doesn't work, the size of this style of array needs to be given as a constant, I need it to be dynamic. Is there any other way?
You can dynamically allocate that array-
brook::Stream< int >** sarray = new brook::Stream< int >*[sarray_len];