Removal of duplicate matrices from a list

asked 2022-07-27 10:40:33 +0200

sgmth gravatar image

For 'n' different sets of ci's we form list


Similarly for 'n' different sets of di's, ei's we form lists:



And we have coressponding sets of matrices:

MC=matrix(2,2, List_C)

MD=matrix(2,2, List_D)

ME=matrix(2,2, List_E)

Then we form the following list:


Now how to remove duplicate list of matrices in List_Mat?

edit retag flag offensive close merge delete


Use a set instead of a list for List_C. If this is in reference to your other question, it would be more efficient to do this as you construct the lists of elements: since the lists are so long, eliminating some possibilities early should make everything faster. Also, does order matter? Lists are inherently ordered, and is that important? That's was not clear in the other questions, either.

John Palmieri gravatar imageJohn Palmieri ( 2022-07-27 17:59:47 +0200 )edit