I think that's just what I needed. Thanks!
On 2015-10-29 09:55 PM, peter dalgaard wrote:
On 30 Oct 2015, at 00:03 , Duncan Murdoch <murdoch.dun...@gmail.com> wrote:
On 29/10/2015 6:38 PM, Marco Inacio wrote:
Is there a function in R to get the set of all unit vectors which are
orthogonal to a given vector?
No.
Building blocks should be there, though. The last n-1 columns of
Q <- qr.Q(qr(cbind(v, diag(nrow=length(v)))))
looks like a good start.
The full set is an n-1 dimensional sphere in n-space, spanned by those column
vectors. If you need more than that representation, some further assembly is
required.
-pd
Duncan Murdoch
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.