10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
13 #include "../classes.h"
31 array=xNew<IssmDouble*>(
M);
43 matrix=xNew<IssmDouble>(m*n);
44 xMemCpy<IssmDouble>(matrix,in_array[i],m*n);
69 xDelete<IssmDouble>(matrix);
72 xDelete<IssmDouble*>(
array);
92 _printf_(
" array size: " << this->
M <<
"\n");
101 for(k=0;k<n;k++)
_printf_(*(matrix+n*j+k) <<
" ");
111 _printf_(
" array size: " << this->
M <<
"\n");
128 for(
int i=0;i<
M;i++){
157 int* out_mdim_array=NULL;
158 int* out_ndim_array=NULL;
162 out_array=xNew<IssmDouble*>(
M);
163 out_mdim_array=xNew<int>(
M);
164 out_ndim_array=xNew<int>(
M);
169 for(i=0;i<this->
M;i++){
170 matrix=this->
array[i];
175 out_matrix=xNew<IssmDouble>(m*n);
176 xMemCpy<IssmDouble>(out_matrix,matrix,m*n);
181 out_array[i]=out_matrix;
191 if(pout_M) *pout_M=out_M;
192 if(pout_mdim_array) *pout_mdim_array=out_mdim_array;
193 if(pout_ndim_array) *pout_ndim_array=out_ndim_array;
194 *pout_array=out_array;
209 xDelete<IssmDouble>(matrix);
211 xDelete<IssmDouble*>(
array);
215 this->
array=xNew<IssmDouble*>(
M);
223 in_matrix=in_array[i];
227 matrix=xNew<IssmDouble>(m*n);
228 xMemCpy<IssmDouble>(matrix,in_matrix,m*n);
230 this->
array[i]=matrix;