Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Matrix calculation


From   "Jiang, Tao" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Matrix calculation
Date   Fri, 6 Sep 2002 15:57:16 -0400

I was doing some matrices calculation, but got some problem.  What I had is
a simple matrix:

A = (1,2\2,1)

and if I do B = inv(A), I got the correct matrix; if I do B = syminv(A),
I got the following:

. mat A = (1,2\2,1)
. mat list A

symmetric A[2,2]
    c1  c2
r1   1
r2   2   1
. mat iA=syminv(A)

. mat list iA

symmetric iA[2,2]
    r1  r2
c1   1
c2   0   0

Is there some reason why?
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index