Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
telplugins_matrix_api.h
1 
42 #ifndef telplugins_matrix_apiH
43 #define telplugins_matrix_apiH
44 #include "telplugins_exporter.h"
45 #include "telplugins_types.h"
46 //---------------------------------------------------------------------------
47 using namespace tlpc;
48 
49 #if defined(__cplusplus)
50 extern "C" {
51 #endif
52 
59 TLP_C_DS double* tlp_cc tpGetDataArray(TELHandle matrixH);
60 
68 TLP_C_DS int tlp_cc tpGetMatrixNumRows(TELHandle data);
69 
77 TLP_C_DS int tlp_cc tpGetMatrixNumCols(TELHandle data);
78 
93 TLP_C_DS bool tlp_cc tpGetMatrixElement(TELHandle matrixH, int r, int c, double *value);
94 
109 TLP_C_DS bool tlp_cc tpSetMatrixElement(TELHandle matrixH, int r, int c, double value);
110 
120 TLP_C_DS TELHandle tlp_cc tpCreateMatrix(int rows, int cols, char* colNames);
121 
129 TLP_C_DS bool tlp_cc tpFreeMatrix(TELHandle handle);
130 
131 
132 #if defined(__cplusplus)
133 } //rrp namespace and extern "C"
134 #endif
135 
136 #endif