0

I am ultimately trying to create a pseudoinverse function using svd methodology. I want to first create a SVD function that will give me the U, E and V matrices that I will later use in the formula below to get the pseudoinverse: enter image description here

I am not sure how to code these matrices. I understand how to do this by hand through eigen values and vectors but not sure how to translate that to c code.

I have already created functions for Transpose and matrix multiplication. Now its a matter of finding these 3 matrices.

  • 2
    Please show a [mre] of how your input data is represented, of how your result should be represented. Provide a useful sample input (ideally avoid using input reading, i.e. use hardcoded init values). Provide the expected result for that. Show the functions you have mentioned as already done and how they are used. Explain the math part, "by hand" is fine. That will either help you with making progress yourself or with finding help here. – Yunnosch Aug 17 '21 at 06:41

1 Answers1

0

You can see a similar asked question with a link to a source file. They recommend to use openCV built-in function - you can find it here - the purpose is to use a ready function from the openCV library.

Itzik Chaimov
  • 89
  • 1
  • 10