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

Definition at line 245 of file mexaux.hpp.

References mex2cpp().

00246 {
00247   const int* dims = mxGetDimensions(md);
00248   int m = dims[0];  int n = dims[1];  int p = dims[2];
00249   int s = -m/2;  int t = -n/2;  int u = -p/2;
00250   cd.resize(m,n,p,s,t,u);
00251   int cnt = 0;
00252   for(int k=u; k<u+p; k++)
00253          for(int j=t; j<t+n; j++)
00254                 for(int i=s; i<s+m; i++) {
00255                   const mxArray* tt = mxGetCell(md, cnt);                 mex2cpp(tt, cd(i,j,k));
00256                   cnt++;
00257                 }
00258   return;
00259 }


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