Re: [R] Inner product

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 30 Sep 2006 - 21:59:50 GMT

"David Barron" <mothsailor@googlemail.com> writes:

> For inner product see ?"%*%". There is a norm function in the Matrix package.

Or crossprod(). Notice that this gives _squared_ norms when applied to a single vector.  

> On 30/09/06, Sonal Darbari <darbarisonal@gmail.com> wrote:
> > Hi,
> >
> > How do we find out the inner product & norm of eigen vectors in R?
> >
> > Lets say we have eigen vectors :
> > x1 = 1,2,3 and x2 = 2,-3,4
> >
> > are there any functions buit in R which directly calculate the inner product
> > & norm of vectors?
> >
> > Thanks,
> > Sonal.
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > 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.
> >
>
>
> --
> =================================
> David Barron
> Said Business School
> University of Oxford
> Park End Street
> Oxford OX1 1HP
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> 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.
>

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
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.
Received on Sun Oct 01 08:03:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 30 Sep 2006 - 22:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.