search for: r_matrix_multiply

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

Did you mean: c_matrix_multiply
2011 Feb 20
2
Problem using F77_CALL(dgemm) in a package
...ply two matrices using the blas routine dgemm. The name of my example package is CMATRIX. My code is as follows. I have a file matrix.c in my src directory: #include <R.h> #include <R_ext/Utils.h> #include <R_ext/Lapack.h> #include <R_ext/BLAS.h> //Computes C = A*B void R_matrix_multiply(double * A, double * B, int * m, int *n, int * p, double * C){ double one = 1.0; double zero = 0.0; //Just printing the input arguments Rprintf("m = %d, n = %d, p = %d\n",*m,*n,*p); int i; for(i=0;i<(*m**n);i++){ Rprintf("%f ",A[i]); } Rprintf("\n"...