Aleksandar Donev wrote:
[...]
> Assume we have a matrix of dimension A(4,5) and we want to delete rows 1 and
> 3, to get a matrix of dimension (2,5). This would be done via a call to:
>
> packed_array=NEW_PACK(array=A, mask=(/F,T,F,T/), dim=1)
>
> This is the functionality I am looking for.
[...]
Shouldn't this be done as "packed_array = A(2:4:2,:)"? This may not be
applicable if A(:,:) is a temporary return created by a function call.
However, in those cases, one still has the option to specify a MASK
array with the same dimension as A(:,:), which might be more efficient
if this is for a data-parallel type algorithm.
Just curious, or I have missed the point.
Cheers,
Jing
--
________________________________ _-__-_-_ _-___---
Jing Guo, [log in to unmask], (301)614-6172(o), (301)614-6297(fx)
Data Assimilation Office, Code 910.3, NASA/GSFC, Greenbelt, MD 20771
|