2

I am trying to find inverse of a matrix. When it is singular I need to calculate pseudoinverse. I am not able to find anything like pseudoinverse in JAMA doc. How could I compute it ?

Dici
  • 25,226
  • 7
  • 41
  • 82
Saeed Sharman
  • 765
  • 5
  • 24

1 Answers1

3

jama makes it for you

documentation

public Matrix inverse()
    Matrix inverse or pseudoinverse
    Returns:
        inverse(A) if A is square, pseudoinverse otherwise.
Soraphis
  • 706
  • 7
  • 26