template<class T>
void mex2cpp const mxArray *&  md,
NumTns< T > &  cd
[inline]
 

Definition at line 214 of file mexaux.hpp.

References mex2cpp().

00215 {
00216   const int* dims = mxGetDimensions(md);
00217   int m = dims[0];  int n = dims[1];  int p = dims[2];
00218   cd.resize(m,n,p);
00219   int cnt = 0;
00220   for(int k=0; k<p; k++)
00221          for(int j=0; j<n; j++)
00222                 for(int i=0; i<m; i++) {
00223                   const mxArray* tt = mxGetCell(md, cnt);                 mex2cpp(tt, cd(i,j,k));
00224                   cnt++;
00225                 }
00226   return;
00227 }


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