In my case, I want to solve an undated equation system, A * Î »= b, JacobiSVD In the linear equation system, my C ++ program has the following structure: Coefficient matrix ( A ): RHS ( B ): Lumbda : I also verified it with MATLAB: On the starting, the first simulation step is almost perfect but a lot There is a small numerical error, which is increasing while solving A * Î »= B. Then the system is crashing and my results are no longer correct and I get NaN results. Code here: What have I done? Jacobi SVD All non-resolved -zeros singular value I recommend using ColPivHouseholderQR . 0.6 5.68434e-20 -0.2 5.68434-20 7.06819-39 -4.26326e-20 -0.2 -4.26326e-20 0.4
-1.962 2.78817e-1 9 -5.886
-9.81 3. 9 4467e + 19 & lt; ---------- Error (where does it come from?) -19.62
/ ******** SVD ******** / Jacobi SVD & lt; TMatrixX & gt; SDD (A, ComputeneU | Computaneous); Lambda = svd.solve (b);
No comments:
Post a Comment