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

Definition at line 228 of file mexaux.hpp.

References cpp2mex().

00229 {
00230   int m = cd.m();
00231   int n = cd.n();
00232   int p = cd.p();
00233   int dims[3];  dims[0] = m;  dims[1] = n;  dims[2] = p;
00234   md = mxCreateCellArray(3,dims);
00235   int cnt = 0;
00236   for(int k=0; k<p; k++)
00237          for(int j=0; j<n; j++)
00238                 for(int i=0; i<m; i++) {
00239                   mxArray* ss;          cpp2mex(cd(i,j,k), ss);         mxSetCell(md, cnt, ss);
00240                   cnt++;
00241                 }
00242   return;
00243 }


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