Re: concatenating arrays, stored by a pointer array [message #69503] |
Mon, 18 January 2010 09:44 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
simona bellavista writes:
> I have a generic number of arrays (N) that have been stored in a
> pointer array(p):
>
> *p[0] -> [array0]
> *p[1] -> [array1]
> ...
> *p[i] -> [arrayi]
> ...
> *p[N-1] -> [arrayN-1]
>
> each array has a different size, that's why I have used pointers. I
> would like to concatenate these arrays without using for-cycles.
> Naively I would say
>
> big_array=[*p[*]]
>
> but it doesn't work.
>
> Any hint?
I'm going to go WAY out on a limb and say this can't be
done in any reasonable way without FOR loops. If nothing
else, that will get the juices flowing. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|