search for: mymult

Displaying 1 result from an estimated 1 matches for "mymult".

Did you mean: ymult
2009 Aug 12
2
Problem with function in fortran 95
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example. SUBROUTINE mymult(x,y,res,m,n) IMPLICIT NONE INTEGER :: m,n REAL :: x, y, res DIMENSION :: x(m,n), y(n,m), res(m,m) res = MATMUL(x,y) END SUBROUTINE mymult R CMD SHLIB mat.f95 In R: dyn.load("mat.so") x <- matrix(1:20,5) l <- nrow(x) c <- ncol(x) y...