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.

11 lines
218 B

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