Hi
What would the best method be to create a Hadamard matrix in C++?
0: 11111111111111111111111111111111
1: 11111111111111110000000000000000
2: 11111111000000000000000011111111
3: 11111111000000001111111100000000
4: 11110000000011111111000000001111
5: 11110000000011110000111111110000
6: 11110000111100000000111100001111
7: 11110000111100001111000011110000
8: 11000011110000111100001111000011
9: 11000011110000110011110000111100
10: 11000011001111000011110011000011
11: 11000011001111001100001100111100
12: 11001100001100111100110000110011
13: 11001100001100110011001111001100
14: 11001100110011000011001100110011
15: 11001100110011001100110011001100
I'd like to store the matrix in a 2 dimensional array with dimensions 16 x 32.
Is this correct so far..?
Code:int f, N, had[16][32]; for (f=0; f<16; f++); for (N=0; N<32; N++); had[f][N] =
So i'm now looking to fill the array with the hadamard values and I don't know how to do this. Any help would be very much appreciated.
det