Autor Beitrag
HCN
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 22

Xp Prof Sp2, Vista ultimate Sp1
C#, C++, VS 2008 Prof, MeVisLab
BeitragVerfasst: Mo 16.06.08 13:47 
Hallo,

ich habe hier zur Berechnung der Determinante einer quadratischen Matrix zwei Moeglichkeiten:

Einmal Berechnung ueber das Gauss-Jordan Verfahren und einmal ueber LU Decomposition.

Welches von beiden Verfahren ist denn schneller ? Die Matritzen sind so in der Groessenordnung von 1000 x 1000 und beinhalten nur natuerliche Zahlen.

Danke und Gruss HCN
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mo 16.06.08 14:12 
Hab ich vor ca. 20 Jahren gemacht. Damals war LU-Dekomposition wesentlich schneller. Da sich das Verfahren nicht, sondern nur die CPUs in der Zwisc henzeit geändert haben, denke ich, Du müsstest mit LU-Dekomp hinkommen.

Das Gauß-Verfahren ist zudem wegen Rundungsfehlern viel ungenauer. Es könnte sein, das auch die LU-Dekomposition an seine Grenzen stößt bzw. Du mit höherer Genauigkeit rechnen musst.

_________________
Na denn, dann. Bis dann, denn.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 16.06.08 14:24 
In den Numerical Recipes (Kapitel 2.3) gibt es noch folgenden Hinweis:
Zitat:
For a matrix of any substantial size, it is quite likely that the determinant will overflow or underflow your computer’s floating-point dynamic range. In this case you can modify the loop of the above fragment and (e.g.) divide by powers of ten, to keep track of the scale separately, or (e.g.) accumulate the sum of logarithms of the absolute values of the factors and the sign separately.

(Die benutzen auch LU Zerlegung für die Berechnung der Determinante)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.06.08 16:46 
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Mo 16.06.08 17:20 
Darf ich fragen, wofür du den Wert brauchst?
HCN Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 22

Xp Prof Sp2, Vista ultimate Sp1
C#, C++, VS 2008 Prof, MeVisLab
BeitragVerfasst: Mo 16.06.08 19:10 
Die Matrize beinhaltet HU Units aus der med. Bildgebung. Mehr darf ich leider nicht sagen....