Calculate Eigenvalues of a given matrix m.
> sm <- eigen(m, sym=TRUE) > V <- sm$vectors > t(V) %*% V > V %*% diag(sm$values) %*% t(V)
11388 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
> sm <- eigen(m, sym=TRUE) > V <- sm$vectors > t(V) %*% V > V %*% diag(sm$values) %*% t(V)
> x <- matrix(1:10,,2) > x[x[,1]%in%c(2,3),] > x[!x[,1]%in%c(2,3),]
> mat[!(mat$first %in% 713:715),]
> my.array<-array(0,dim=c(10,5,6,8))
> array.test <- array(1:64,c(4,4,4)) > array.test[1,1,1] > 1 > array.test[4,4,4] > 64
> diag(n)
> n<-c(5) > I <- matrix(0,nrow=n,ncol=n) > I[row(I)==col(I)] <- 1
> v <- c(1, 2, 3) > is.vector(v)
$ echo =ls(:h) /bin
#include <stdio.h> main() { for(;;) { printf ("Hello World!\n"); } }