Re: Re-ordering columns or rows of an array efficiently
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 14:44:46 -0800
Dan Nagle wrote:
(I wrote)
You could do the rearrangement one row at a time, which requires
only one temporary row.
I think at worst he needs only two temporary vectors
to make whatever rearrangement he wants.
It can be done without any temporary vectors, but it will
be faster with one or two. The OP didn't say how many
rows or columns he had.
-- glen
.
- Follow-Ups:
- References:
- Re-ordering columns or rows of an array efficiently
- From: Mike
- Re: Re-ordering columns or rows of an array efficiently
- From: glen herrmannsfeldt
- Re: Re-ordering columns or rows of an array efficiently
- From: Dan Nagle
- Re-ordering columns or rows of an array efficiently
- Prev by Date: Re: Re-ordering columns or rows of an array efficiently
- Next by Date: matmul does not work.
- 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):