taby said:
That’s deadly awesome man. Yes, the Jacobi SVD algorithm is not clear to me. If you still have it, please post your solver code.
It's gone becasue i've switched from accuracy to faster approximations. And the solver i did myself was specific to the problem, like always. I'm not familiar with the algebra to express various problems in matrix form, and then using general solvers, sadly.
The SVD algorithm i was talking about earlier is restricted to a 3x3 matrix, and afaik it works by using 3D rotation maths internally.
It is very fast, and there is SIMD optimized source code.
You could not use it for your ellipse problem i guess, but for example:
Find an ellipsoid to fit some given distribution, e.g. mass particles, or colors, a force field.
This gives the ideal orientation to represent moment of inertia for a rigid body made of said particles, or most important colors you want to preserve with compression, or the anisotropic stress caused from the force field.
It can detect edges, give primary curvature directions, and things like that. But it must be a 3D problem.