N
neo-2199
moin moin
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
int a[N][N]; // zweidimensionale Matrix a
int b[N][N]; // zweidimensionale Matrix b
int c[N][N]; // Ergebnis in Matrix c
for (int line = 0; line<N; ++line) {
for (int col = 0; col<N; ++col) {
c[line][col] = a[line][col]+b[line][col];
}
}
matrizenmultiplikation
hi ho , hab den geschlossenen beitrag über die matrizenmultiplikation gefunden und wollt nur sagen ( für leute die damit gerade anfangen ) das du statt der multiplikation die addition als beispiel hingeschrieben hast.
Beispiel für multiplikation:
ANZAHL 3
int feld1[ANZAHL][ANZAHL];
int feld2[ANZAHL][ANZAHL];
int feld3[ANZAHL][ANZAHL];
------- Rechnung an Beispiel ( 3 Spaltig/Zeilig ) ---------
feld3[0][0] = feld1[0][0] * feld2[0][0] + feld1[0][1] * feld2[1][0] + feld1[0][2] * feld2[2][0]
und dann immer so weiter.
tschö mit ö , sabine.