title: How to make easy access to struct as matrix
body: <p>I want to create a <code>struct</code> which would be able to have a matrix and some parameters; so, for example, I have:</p>
  <pre><code>struct matrix {
      int rows;
      int cols;
      double** data;
  } A;
  </code></pre>
  <p>I want to use, instead of <code>A.data[x][y]</code>, easy access like<code>A[x][y] = A.data[x][y]</code>. Any ideas?</p>