how to implement bidimensional array where each element has a set of values in python?
<p>I have a problem implementing the following in python:</p>

<p>I have a nxn matrix like this:</p>

<pre><code>[ X11 X12 X13 ... x1n

Xn1 Xn2 Xn3 ... Xnn  ]
</code></pre>

<p>Thats simple to get but any of those "Xij" values has 4 simple int values(0 or 1 each) and i cant seem to understand how to create an array or collection that i can use.</p>

<p>Does anyone know what is the best solution to this scenario? </p>

<p>Perhaps creating an object to store 4 int numbers and then creating a bidimensional array that contains them but i want the "best" approach to this problem.</p>

<p>Im using numpy and python 2.7. </p>
