You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
218 B

3 years ago
  1. sum2 <- function(m) {
  2. res = .C("sum2"
  3. ,mtrx=as.double(m)
  4. ,m=as.integer(dim(m)[1])
  5. ,n=as.integer(dim(m)[2])
  6. ,res=as.double(0)
  7. )
  8. return(res$res)
  9. }