Description | The system MA * X = B of simultaneous linear equations is solved for X, using Singular Value Decomposition. Here, under-determined systems do not lead to an error. Rather, you get one particular solution out of the solution space. If you have more equations than unknowns, i.e., in the case of an overdetermined system, the solution vector contains a least-square "compromise" between the equations.
The function should always return FALSE (0). Only in the very rare case of SVD failure, TRUE (1) is returned. The length of the desired solution vector, sizX must be equal to the width of the input matrix, lenA, whereas the length of the right-hand-side vector, sizB must be equal to htA.
The default threshold for singular-value editing may be changed by calling MF_SVDsetEdit. As MF_SVDsetEdit is not thread-safe, this function should not be used to set different editing thresholds for different calls to MF_solveBySVD etc. Rather than repeatedly changing the default value, use the "wEdit" variant of MF_solveBySVD etc., namely MF_solveBySVDwEdit, MF_SVsolvewEdit and MF_safeSolvewEdit.
|