Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Stas Kolenikov <skolenik@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: orthogonal complement of a vector |
Date | Sun, 19 Jun 2011 10:01:54 -0400 |
The problem is ill-defined: there are infinitely many such y's (differing in magnitude if x is two-dimensional, and differing in direction as well if the dimension is greater than two). Which one are you looking for? mata x = (1, 2, 3, 4, 5)' y = rnormal(5,1,0,1) y[5,1] = -( x[1..4,.]'*y[1..4,.] )/x[5,.] x'*y end On Sat, Jun 18, 2011 at 5:25 PM, <strobl@poly.polytechnique.fr> wrote: > Dear Statalist users, > > does anybody know how to calculate the orthogonal complement of a vector. In > other words, if I have a vector x, I am looking for the vector y, so that: > > x'*y=0 > > > thanks in advance for any help > > > Eric > > ---------------------------------------------------------------- > This message was sent using X-WebMail > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > -- Stas Kolenikov, also found at http://stas.kolenikov.name Small print: I use this email account for mailing lists only. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/