Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Given a matrix, how to solve X so that X*X=A in Mata?

    sqrt() returns the element-wise square root of a matrix. Are there any function that can directly solve this matrix equation? Thanks.

  • #2
    help mata cholesky()

    Comment


    • #3
      Thank you. By using the result of cholesky(), I only need a few more steps of transformation to get the square root of the symmetric matrix.

      Comment


      • #4
        if A i symmetric you can use matpowersym(A,.5)

        Comment


        • #5
          Oh, that sounds good. I will try that. Thanks.

          Comment

          Working...
          X