title: Passing matrix of variable size to a method in Objective C
body: <p>Dear all,
  I have a 2 by 2 square matrix with real intries that I want to pass to a method. It looks as;</p>
  
  <pre><code> double coefficients[2][2] = { { 1.00, 0.6789140 }, {0.4446350, 0.4301290 } };
  
   [self PrintOut:?????? andNRows:2 andNColumns:2];
  
  - (void) PrintOut:(double ?????? andNRows:(NSInteger)rows andNColumns:(NSInteger)columns {
  
   // do something here
  }
  </code></pre>
  
  <p>can somebody let me know please how should I pass it so that I can retrieve the entries either as coefficients[ i ][ j ] or coefficients[ i * rows + j ]?</p>