Advice on how to slice a dynamic array

In reply to dave_59:

Yes. Since I could not compile, I’m not sure if that is the right way. My intent is : ‘data’ is a dynamic 2D array whose size is defined by ‘blk_len’. For example, if ‘blk_len’ is 10, ‘data’ holds 10 32-bit words. I have another dynamic array hold_data, which holds the slice of data (calculated by the math). In other words, based on the math, I want to create ‘hold_data’ array which holds the subset of words of the data array. Is this the wrong way to do it?

Thanks.