[R] Inner product

2006-09-30 Thread Sonal Darbari
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]]

Re: [R] Inner product

2006-09-30 Thread David Barron
For inner product see ?%*%. There is a norm function in the Matrix package. On 30/09/06, Sonal Darbari [EMAIL PROTECTED] 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

Re: [R] Inner product

2006-09-30 Thread Peter Dalgaard
David Barron [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote: Hi, How do we find out the