I am looking to find all possible linear combinations of a set of matrices over GF(2)
. I know the number of matrices, k
, and they are all the same dimension, stored in a 3D array, C(:,:,i)
for the ith matrix. Because I'm working over GF(2)
, all the coefficients of the linear combination must be in {0,1}
. I would like to generate each of the 2^k possible sums so that I may test the resulting matrix for a required property. There are many posts about generating all combinations of elements of matrices or vectors, but I am looking to generate all linear combinations of the matrices as a whole.
Many Thanks!