You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromulabimportnumpyasnpfromulabimportscipyasspy# ... # generate our matrices a and b to solve, finding x where ax = b#q,r=np.linalg.qr(a)
x=spy.linalg.solve_triangular(r,np.dot(q.T,b))
What I'd like is a simple convenience function to access this algorithm. For context, I'm writing
code to enable calibrating a magnetometer - this involves fitting a cloud of points to a rotated ellipsoid, and then fitting another
cloud of points to a plane. I've got the algorithm working on my laptop using the lstsq function, but now I want to use it
in an embedded device, using ulab.
The text was updated successfully, but these errors were encountered:
I'd like to implement a least squares solver, similar to https://numpy.org/doc/stable/reference/generated/numpy.linalg.lstsq.html
I can do it now with the following
What I'd like is a simple convenience function to access this algorithm. For context, I'm writing
code to enable calibrating a magnetometer - this involves fitting a cloud of points to a rotated ellipsoid, and then fitting another
cloud of points to a plane. I've got the algorithm working on my laptop using the
lstsq
function, but now I want to use itin an embedded device, using ulab.
The text was updated successfully, but these errors were encountered: