Moore-Penrose -> least squares #3198
colinjcotter
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For manifold meshes, we use the Moore Penrose inverse of the gradient of the coordinate field. If the mesh element is anisotropic, this gradient can be ill-conditioned, and then evaluating A^TA is not a good idea or it's inverse is not a good idea.
Since we always immediately apply this operator to a vector, it would be maybe be better to just do a least squares solution of Ax=b, which does the same job, at runtime. Then we can use a stable algorithm like QR. This would require to keep the inverse symbolic, and insert a LAPACK SGELS or similar into the kernel code.
Beta Was this translation helpful? Give feedback.
All reactions