title: MaxMin matrices composition
body: <p>I'm working on fuzzy classifications. Because I'm not a real software developer... just realized that I'm not able to implement, in <code>C</code> language, the max-min composition on matrices.</p>
  
  <p>I'll try to be much more clear.</p>
  
  <p>Suppose you've got a square matrix just like this:</p>
  
  <pre><code>float matrix[2][2] = {
                          { 1.0, 0.4 },
                          { 0.4, 1.0 }
                       };
  </code></pre>
  
  <p>The max-min composition of "matrix" by itself, yelds</p>
  
  <pre><code>result_matrix[2][2] = {
                           { 1.0, 0.4 }
                           { 0.4, 1.0 }
                        };
  </code></pre>
  
  <p>e.g.</p>
  
  <p>first perform</p>
  
  <pre><code>min(1.0, 0.4) = 0.4 /* first row */
  min(1.0, 0.4) = 0.4 /* first col */
  </code></pre>
  
  <p>then</p>
  
  <p><code>max(0.4, 0.4) = 0.4</code> that's the element at (0, 0) of the new matrix.</p>
  
  <p>e.g.</p>
  
  <pre><code>min(1.0, 0.4) = 0.4; /* first row */
  min(0.4, 1.0) = 0.4; /* second col */
  
  max(0.4, 0.4) = 0.4;
  </code></pre>
  
  <p>element at (0, 1)</p>
  
  <p>What I need to implement, in <code>C</code> language, is a sort of "rows by cols" check on a matrix.</p>
  
  <p>I really dunno how to do this.</p>
  
  <p>Some suggestions ?</p>
  
  <p>Thanks in advance.</p>