[18984] in s-news-athena
[S] Removing rows from a matrix
daemon@ATHENA.MIT.EDU (Brian A Millen.)
Thu Aug 19 18:40:55 1999
Message-Id: <3.0.6.32.19990819183341.007b9990@stat.ohio-state.edu>
Date: Thu, 19 Aug 1999 18:33:41 -0400
To: s-news@wubios.wustl.edu
From: "Brian A Millen." <millen.2@osu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
I want to remove a row from a matrix if it is the reverse of a row
"earlier" in the matrix. For example, if I have the following matrix, X:
Row1: (1,2,3,4)
Row2: (1,3,2,4)
Row3: (4,3,2,1)
Row4: (3,2,4,1)
Row5: (3,2,1,4)
Row6: (4,2,3,1)
I want to apply a function to X so that I am left with the matrix, Y:
Row1: (1,2,3,4)
Row2: (1,3,2,4)
Row3: (3,2,4,1)
Row4: (3,2,1,4)
Note: since X[3,] == rev(X[1,]) and X[6,] == rev(X[2,]), the rows X[3,]
and X[6,] are not included in the matrix Y.
Thank you, in advance, for any help you may give.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news