title: Using std::max_element on a two dimensional matrix
body: <p>I have a two dimensional matrix</p>
  
  <pre><code>double TotalEnergy[200][47];
  </code></pre>
  
  <p>This matrix is populated with appropriate values. Now I am trying to find maximum value in each column.</p>
  
  <p>How do I use <code>std::max_element</code> in this case?</p>
  
  <p>Many thanks.</p>
  
  <p>Best Regards</p>
  
  <p>Chintan</p>