comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Flip Matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Flip Matrix [message #41994] Thu, 09 December 2004 04:55
ebertf is currently offline  ebertf
Messages: 12
Registered: January 2004
Junior Member
Hi!

Is there an easy way to flip a matrix, i.e. to reverse the column
indecies??
example:
1.0 2.0 3.0 4.0 5.0
1.1 2.1 3.1 4.1 5.1

should come out as

5.0 4.0 3.0 2.0 1.0
5.1 4.1 3.1 2.1 1.1

I'm working now with a FOR Loop and switch each sigle column. Another
way is a multiplication with a NxN matrix with ones on the second
diagonal and zeros elsewhere. But I have the strong feeling that there
must be something more easy and elegant...

Florian
[Message index]
 
Read Message
Previous Topic: Re: To PVM or not to PVM
Next Topic: Re: Flip Matrix

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 16:11:03 PDT 2025

Total time taken to generate the page: 1.68178 seconds