[138] | 1 | /* |
---|
| 2 | * MATLAB Compiler: 4.11 (R2009b) |
---|
| 3 | * Date: Wed Jan 13 16:03:50 2010 |
---|
| 4 | * Arguments: "-B" "macro_default" "-B" "csharedlib:libmatrix" "-W" |
---|
| 5 | * "lib:libmatrix" "-T" "link:lib" "addmatrix.m" "multiplymatrix.m" |
---|
| 6 | * "eigmatrix.m" "-v" |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #ifndef __libmatrix_h |
---|
| 10 | #define __libmatrix_h 1 |
---|
| 11 | |
---|
| 12 | #if defined(__cplusplus) && !defined(mclmcrrt_h) && defined(__linux__) |
---|
| 13 | # pragma implementation "mclmcrrt.h" |
---|
| 14 | #endif |
---|
| 15 | #include "mclmcrrt.h" |
---|
| 16 | #ifdef __cplusplus |
---|
| 17 | extern "C" { |
---|
| 18 | #endif |
---|
| 19 | |
---|
| 20 | #if defined(__SUNPRO_CC) |
---|
| 21 | /* Solaris shared libraries use __global, rather than mapfiles |
---|
| 22 | * to define the API exported from a shared library. __global is |
---|
| 23 | * only necessary when building the library -- files including |
---|
| 24 | * this header file to use the library do not need the __global |
---|
| 25 | * declaration; hence the EXPORTING_<library> logic. |
---|
| 26 | */ |
---|
| 27 | |
---|
| 28 | #ifdef EXPORTING_libmatrix |
---|
| 29 | #define PUBLIC_libmatrix_C_API __global |
---|
| 30 | #else |
---|
| 31 | #define PUBLIC_libmatrix_C_API /* No import statement needed. */ |
---|
| 32 | #endif |
---|
| 33 | |
---|
| 34 | #define LIB_libmatrix_C_API PUBLIC_libmatrix_C_API |
---|
| 35 | |
---|
| 36 | #elif defined(_HPUX_SOURCE) |
---|
| 37 | |
---|
| 38 | #ifdef EXPORTING_libmatrix |
---|
| 39 | #define PUBLIC_libmatrix_C_API __declspec(dllexport) |
---|
| 40 | #else |
---|
| 41 | #define PUBLIC_libmatrix_C_API __declspec(dllimport) |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | #define LIB_libmatrix_C_API PUBLIC_libmatrix_C_API |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | #else |
---|
| 48 | |
---|
| 49 | #define LIB_libmatrix_C_API |
---|
| 50 | |
---|
| 51 | #endif |
---|
| 52 | |
---|
| 53 | /* This symbol is defined in shared libraries. Define it here |
---|
| 54 | * (to nothing) in case this isn't a shared library. |
---|
| 55 | */ |
---|
| 56 | #ifndef LIB_libmatrix_C_API |
---|
| 57 | #define LIB_libmatrix_C_API /* No special import/export declaration */ |
---|
| 58 | #endif |
---|
| 59 | |
---|
| 60 | extern LIB_libmatrix_C_API |
---|
| 61 | bool MW_CALL_CONV libmatrixInitializeWithHandlers( |
---|
| 62 | mclOutputHandlerFcn error_handler, |
---|
| 63 | mclOutputHandlerFcn print_handler); |
---|
| 64 | |
---|
| 65 | extern LIB_libmatrix_C_API |
---|
| 66 | bool MW_CALL_CONV libmatrixInitialize(void); |
---|
| 67 | |
---|
| 68 | extern LIB_libmatrix_C_API |
---|
| 69 | void MW_CALL_CONV libmatrixTerminate(void); |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | extern LIB_libmatrix_C_API |
---|
| 74 | void MW_CALL_CONV libmatrixPrintStackTrace(void); |
---|
| 75 | |
---|
| 76 | extern LIB_libmatrix_C_API |
---|
| 77 | bool MW_CALL_CONV mlxAddmatrix(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]); |
---|
| 78 | |
---|
| 79 | extern LIB_libmatrix_C_API |
---|
| 80 | bool MW_CALL_CONV mlxMultiplymatrix(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]); |
---|
| 81 | |
---|
| 82 | extern LIB_libmatrix_C_API |
---|
| 83 | bool MW_CALL_CONV mlxEigmatrix(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]); |
---|
| 84 | |
---|
| 85 | extern LIB_libmatrix_C_API |
---|
| 86 | long MW_CALL_CONV libmatrixGetMcrID(); |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | extern LIB_libmatrix_C_API bool MW_CALL_CONV mlfAddmatrix(int nargout, mxArray** a, mxArray* a1, mxArray* a2); |
---|
| 91 | |
---|
| 92 | extern LIB_libmatrix_C_API bool MW_CALL_CONV mlfMultiplymatrix(int nargout, mxArray** m, mxArray* a1, mxArray* a2); |
---|
| 93 | |
---|
| 94 | extern LIB_libmatrix_C_API bool MW_CALL_CONV mlfEigmatrix(int nargout, mxArray** e, mxArray* a1); |
---|
| 95 | |
---|
| 96 | #ifdef __cplusplus |
---|
| 97 | } |
---|
| 98 | #endif |
---|
| 99 | #endif |
---|