Re: Re-ordering columns or rows of an array efficiently
- From: "deltaseq0" <deltaseq0@xxxxxxxxxx>
- Date: Wed, 28 Nov 2007 17:10:16 -0500
"Mike" <mkjohnst@xxxxxxxxx> wrote in message
news:8a370769-5a66-4532-8480-20e62e19a6dc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,Perhaps you could initially store the data in vectors rather than an array
I'm somewhat new to FORTRAN, and just have what is probably a simple
question to which I've been unable to find the answer (after much
Googling).
I need to re-order the columns of an array. The way that I've done
this is to construct a vector of integers E which contains the desired
order of the columns, and then I do this:
A0=A(:,E)
A=A0
Of course, this requires having a matrix the size of A allocated
twice. Since A is several gigabytes on my system, this is a rather
undesirable way to do things. Yet, I get errors if I try something
like A=A(:,E). Can anyone suggest a way of doing this that doesn't
require as much memory?
Best regards,
Mike
then form the array from the vectors? - Mike
.
- References:
- Prev by Date: Re: Re-ordering columns or rows of an array efficiently
- Next by Date: Re: Re-ordering columns or rows of an array efficiently
- Previous by thread: Re: Re-ordering columns or rows of an array efficiently
- Next by thread: Re: Re-ordering columns or rows of an array efficiently
- Index(es):
Relevant Pages
|