Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: orthogonal complement of a vector


From   Stas Kolenikov <[email protected]>
To   [email protected]
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,  <[email protected]> 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index