void cpp2mex const DblNumMat &  cd,
mxArray *&  md
[inline]
 

Definition at line 101 of file mexaux.hpp.

00102 {
00103   int m = cd.m();
00104   int n = cd.n();
00105   md = mxCreateDoubleMatrix(m, n, mxREAL);
00106   double* xr = mxGetPr(md);
00107   int cnt = 0;
00108   for(int j=0; j<n; j++)
00109          for(int i=0; i<m; i++) {
00110                 xr[cnt] = cd(i,j);
00111                 cnt++;
00112          }
00113   return;
00114 }


Generated on Sun Dec 4 19:24:40 2005 for fmm3d by  doxygen 1.4.5