Rev | Line | |
---|
[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 |
|
---|
| 17 | IssmDenseMat<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.