Singular-Wert-Zersetzung Einfacher Code in c
-
15-11-2019 - |
Frage
Ich suche nach einem Singular-Wert-Zersetzung (SVD) -Code in C, würden Sie mir bitte helfen?
Ich habe viele Quellen gefunden, aber ich kann sie nicht ausführen, ich suche nach einer Version SVD-Code, die 3 Matrix von S, V und U für mich liefert.
Lösung
You can use the Numerical recipies code for that svdcmp.c reference. Actually in my case I found more accurate the openCV one, but both work fine.
Andere Tipps
Don't write it yourself, don't deal with trying to build someone else's source. Use a library that provides this function for you. There's probably already one available on your target platform.
Specifically, use the industry-standard LAPACK library or use the GSL or whatever other linear algebra library you want. They all have an SVD implementation.