matrizenmultiplikation

$\displaystyle m = 4,n = 4,s = 4$

$\displaystyle \left(\begin{array}{ccccc}8&1&2&1&\\
7&3&8&9&\\
3&1&3&2&\\
7&5...
...19&\\
55&115&115&87&\\
15&40&36&26&\\
19&88&80&62&\\
\par\end{array}\right)$

ergebnis

M_{11} = 8*0 + 1*1 + 2*2 + 1*4 =
        1 + 4 + 4 = 9
M_{12} = 8*5 + 1*7 + 2*4 + 1*3 =
        40 + 7 + 8 + 3 = 58
M_{13} = 8*5 + 1*6 + 2*1 + 1*6
        = 12 + 40 + 2 = 54
M_{14} = 8*0 + 1*9 + 2*3 + 1*4 =
        9 + 6 + 4 = 19

M_1 = (9,58,54,19)

M_{21} = 7*0 + 3*1 + 8*2 + 9*4 =
            3 + 16 + 36 = 55
M_{22} = 7*5 + 3*7 + 8*4 + 9*3 =
        35 + 21 + 32 + 27 = 56 + 59 = 115
M_{23} = 7*5 + 3*6 + 8*1 + 9*6 =
        35 + 18 + 8 + 54 = 26 + 54 + 35 = 115
M_{24} = 7*0 + 3*9 + 8*3 + 9*4 =
        27 + 24 + 36 = 87
M_2 = (55,115,115,87)

(M_{42}) = ((5,58,54,19),
            (55,115,115,87))

... das mache ich wann anders.
jetzt noch der pattern matching automat.