title: subset array with Fortran given a condition?
body: <p>Suppose I have an array A(n,m). Is it possible to subset that array in Fortran to create a new array? For example, </p>
  
  <pre><code>A = 11   22   43   55
      15   56   65   63
      54   56   32   78
  </code></pre>
  
  <p>I want to create an array B with m-1 columns and the rows that satisfies A(:,2) .eq. 56</p>
  
  <p>So B should be:</p>
  
  <pre><code>B = 15   65   63
      54   32   78
  </code></pre>
  
  <p>I don't even know how to start because, for example, the dimension of B should be determined dynamically (I think)</p>
  
  <p>Thanks for the help!</p>