[R] Inner product
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sat Sep 30 23:59:50 CEST 2006
"David Barron" <mothsailor at 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 at 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 at 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 at 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 at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list