title: How to "typedef" a matrix in C
body: <p>when defining new data types in C, one can do</p>
  
  <pre><code>    typedef double BYTE;
  </code></pre>
  
  <p>so later it is possible to do</p>
  
  <pre><code>BYTE length;
  </code></pre>
  
  <p>etc</p>
  
  <p>I would like to do something like</p>
  
  <pre><code>typedef double[30][30][10] mymatrix;
  </code></pre>
  
  <p>so later I do</p>
  
  <pre><code>mymatrix AA[10];
  </code></pre>
  
  <p>so I have 10 matrices of type mymatrix, and I can access them through AA[0], AA[1], etc</p>
  
  <p>Anyway doing this with the GNU C compiler I get errors like</p>
  
  <pre><code>error: expected unqualified-id before '[' token
  </code></pre>
  
  <p>What am I doing wrong or how could I achieve my objective?</p>
  
  <p>Thanks</p>