문제
C에서 단일 가치 분해 (SVD) 코드를 찾고 있습니다. 제발 도와 드리겠습니다.
나는 많은 출처를 발견했지만, 나는 그들을 달릴 수 없으며, 나는 S, V 및 U의 3 매트릭스를 제공하는 버전 SVD 코드를 찾고있다.
해결책
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.
다른 팁
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.
제휴하지 않습니다 StackOverflow