Autor Beitrag
Sebbi2712
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Di 30.06.09 16:16 
Hallo Leute.
Kann mir jemand verraten, wie ich zwei 3x3 Matrizen miteinander multiplizieren kann...

Hier ist das Schema, wie das funktioniert:
itp.tugraz.at/LV/ker...appsoft1/node35.html

Gib es dafür eine Kurzform wie in Excel ( MMULT(Matrix1; Matrix2), oder muss ich alle Werte von Hand berechnen?


Besten Dank schon im Voraus.


Moderiert von user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am Mo 06.07.2009 um 10:45
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 30.06.09 16:21 
Hallo und :welcome: !

Da C# bzw. .NET keine Mathematiksprache (MatLab, Maple, ...) ist, ist da so etwas nicht drin, das musst du manuell berechnen. Am besten schreibst du dir dafür eine Funktion oder so.
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4795
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 30.06.09 16:46 
Für 3x3 Matrizen gibt es im Namespace System.Drawing.Drawing2D die Klasse Matrix, welche auch Additon sowie Multiplikation unterstützt.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 30.06.09 16:59 
Ach ja, ok, dass sowas bei den Grafikroutinen dabei sein könnte, daran habe ich gar nicht gedacht. :oops:
gfoidl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 157
Erhaltene Danke: 19

Win XP
C#, Fortran 95 - Visual Studio
BeitragVerfasst: Di 30.06.09 18:00 
Hallo,

wie es mit C#-Code geht (damit meine ich nicht die Verwendung der Klasse Matrix aus System.Drawing.Drawing2D) zeigt dieses Snippet.

mfG Günther

_________________
Alle sagten, das geht nicht! Dann kam einer, der wusste das nicht - und hat's gemacht!
Sebbi2712 Threadstarter
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Mo 06.07.09 09:59 
Hallo Leute.
DAnke schon einmal für die Antworten.
Ich habe es nun einfach "zu Fuss" programmiert, und die Rechnaufgaben der Matrix einzeln eingegeben.

Gruss
Sebastian