Login or Register
Log in with
Forums
FAQ
Search in titles only
Search in Mata only
Advanced Search
Search
Home
Forums
Forums for Discussing Stata
Mata
You are not logged in. You can browse but not post. Login or
Register
by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the
FAQ
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Filtered by:
Clear All
new posts
Ingrid Qiu
Join Date:
Jul 2015
Posts:
70
#1
Given a matrix, how to solve X so that X*X=A in Mata?
20 Aug 2015, 08:16
sqrt() returns the element-wise square root of a matrix. Are there any function that can directly solve this matrix equation? Thanks.
Christophe Kolodziejczyk
Join Date:
Mar 2014
Posts:
377
#2
20 Aug 2015, 09:29
help mata cholesky()
Comment
Post
Cancel
Ingrid Qiu
Join Date:
Jul 2015
Posts:
70
#3
20 Aug 2015, 11:02
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
Post
Cancel
Christophe Kolodziejczyk
Join Date:
Mar 2014
Posts:
377
#4
20 Aug 2015, 14:16
if A i symmetric you can use matpowersym(A,.5)
Comment
Post
Cancel
Ingrid Qiu
Join Date:
Jul 2015
Posts:
70
#5
20 Aug 2015, 15:05
Oh, that sounds good. I will try that. Thanks.
Comment
Post
Cancel
Previous
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment