search for: c_matrix_multiply

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

2011 Feb 20
2
Problem using F77_CALL(dgemm) in a package
...Rprintf("%f ",B[i]); } Rprintf("\n"); for(i=0;i<(*m**p);i++){ Rprintf("%f ",C[i]); } Rprintf("\n"); //Here is the actual multiplication F77_CALL(dgemm)("N","N",m,n,p,&one,A,m,B,n,&zero,C,m); } And the file C_matrix_multiply.R in my R directory: C_matrix_multiply = function(A,B){ C <- matrix(0,nrow(A),ncol(B)) cout <- .C("R_matrix_multiply",as.double(A),as.double(B),nrow(A),ncol(A),ncol(B),as.double(C)) return(matrix(cout$C,nrowA,ncol(B))) } My namespace file is: export("C_matrix_multiply&q...