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

Definition at line 87 of file mexaux.hpp.

00088 {
00089   int m = mxGetM(md);
00090   int n = mxGetN(md);
00091   double* xr = mxGetPr(md);
00092   cd.resize(m,n);
00093   int cnt = 0;
00094   for(int j=0; j<n; j++)
00095          for(int i=0; i<m; i++) {
00096                 cd(i,j) = xr[cnt];
00097                 cnt++;
00098          }
00099   return;
00100 }


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