identificationdivision. program-id. matrixmult. * aus Wirth, systematisches Programmieren p. 85 author. "JD". date-written. 11.9.2005. date-compiled. datadivision. working-storagesection. 78 n pic9(4) value10. 78 m pic9(4) value10. 78 p pic9(4) value10. 77 s pic9(4)V9(4). 77 i pic9(4). 77 j pic9(4). 77 k pic9(4). linkagesection. 01 fa occurs m. 05 a pic9(4)V9(4) occurs p. 01 fb occurs p. 05 b pic9(4)V9(4) occurs n. 01 fc occurs m. 05 c pic9(4)V9(4) occurs n. proceduredivisionusing fa fb fc. * multiply matrices c = a * b performvarying i from1by1until i >= n performvarying j from1by1until j >= n move0to s performvarying k from1by1until k >= p compute s = s + a(i,k) * b(k,j) end-perform move s to c(i,j) end-perform end-perform. * now c * a * b end-program matrixmult.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.