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

Definition at line 260 of file mexaux.hpp.

References cpp2mex().

00261 {
00262   int m = cd.m();  int n = cd.n();  int p = cd.p();
00263   int s = -m/2;  int t = -n/2;  int u = -p/2;
00264   int dims[3];  dims[0] = m;  dims[1] = n;  dims[2] = p;
00265   md = mxCreateCellArray(3,dims);
00266   int cnt = 0;
00267   for(int k=u; k<u+p; k++)
00268          for(int j=t; j<t+n; j++)
00269                 for(int i=s; i<s+m; i++) {
00270                   mxArray* ss;          cpp2mex(cd(i,j,k), ss);         mxSetCell(md, cnt, ss);
00271                   cnt++;
00272                 }
00273   return;
00274 }


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