# MaxMin matrices composition

0 score

4 answers

I'm working on fuzzy classifications. Because I'm not a real software developer... just realized that I'm not able to implement, in C language, the max-min composition on matrices.

I'll try to be much more clear.

Suppose you've got a square matrix just like this:

float matrix[2][2] = { { 1.0, 0.4 }, { 0.4, 1.0 } };

The max-min composition of "matrix" by itself, yelds

result_matrix[2][2] = { { 1.0, 0.4 } { 0.4, 1.0 } };

e.g.

first perform

min(1.0, 0.4) = 0.4 /* first row */ min(1.0, 0.4) = 0.4 /* first col */

then

max(0.4, 0.4) = 0.4 that's the element at (0, 0) of the new matrix.

e.g.

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;

element at (0, 1)

What I need to implement, in C language, is a sort of "rows by cols" check on a matrix.

I really dunno how to do this.

Some suggestions ?

Thanks in advance.