Código simples de decomposição de valor singular em c
-
15-11-2019 - |
Pergunta
Eu estou procurando por códigos de decomposição do valor singular (SVD) em C, você poderia me ajudar?
Eu encontrei muitas fontes, mas não posso executá-las, estou procurando um código SVD de versão que forneça 3 matriz de s, v e u para mim.
Solução
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.
Outras dicas
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.