Python Forum
Inverse of singular matrix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inverse of singular matrix
#4
Pseudoinverse gives you a solution of minimum norm; In your case matrix A has rank=15, so you have "quite large subspace of freedom" to choose another solution. From the following post you can find how to get any solution:
any_solution = np.linalg.pinv(A) @ b + (np.ones((20, 20)) - np.linalg.pinv(A)@A)@ y  # y.shape = (20, 1)
y is arbitrary vector. Choosing appropriate y probably lead you to desirable solution.
Reply


Messages In This Thread
Inverse of singular matrix - by Divanova94 - May-04-2019, 10:12 AM
RE: Inverse of singular matrix - by scidam - May-04-2019, 10:42 AM
RE: Inverse of singular matrix - by Divanova94 - May-04-2019, 10:51 AM
RE: Inverse of singular matrix - by scidam - May-05-2019, 11:19 AM
RE: Inverse of singular matrix - by scidam - May-11-2019, 02:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Differencing Time series and Inverse after Training donnertrud 0 4,136 May-27-2020, 06:11 AM
Last Post: donnertrud
  Help with Maths (inverse squares) michael1789 5 3,016 Dec-11-2019, 07:30 AM
Last Post: Gribouillis
  Beta Inverse Function ankur2207 5 8,185 Jul-23-2018, 10:07 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020