source: issm/trunk-jpl/src/wrappers/matlab/io/MatlabMatrixToIssmMat.cpp@ 14727

Last change on this file since 14727 was 14727, checked in by Eric.Larour, 12 years ago

CHG: fixed matlab wrappers. i/o had to be updated so that MatlabVectorTo... and MatlabMatrixTo...
routines were up to date with the new ISSM toolkit.

File size: 567 bytes
RevLine 
[14727]1/*!\file MatlabMatrixToIssmDenseMat.cpp
2 */
3
4/*Headers:*/
5#ifdef HAVE_CONFIG_H
6 #include <config.h>
7#else
8#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9#endif
10
11#include <stdio.h>
12#include <string.h>
13#include "./matlabio.h"
14#include "../../c/toolkits/toolkits.h"
15#include "../../c/shared/shared.h"
16
17IssmDenseMat<double>* MatlabMatrixToIssmDenseMat(const mxArray* dataref){
18
19 IssmDenseMat<double>* output=NULL;
20
21 output=new IssmDenseMat<double>();
22 MatlabMatrixToDoubleMatrix(&output->matrix,&output->M,&output->N,dataref);
23 return output;
24
25}
Note: See TracBrowser for help on using the repository browser.