Eötvös Quantum Utilities  v4.8.128
Providing the Horsepowers in the Quantum Realm
EQuUs_MATLAB.h
Go to the documentation of this file.
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4 
5 /* element prototype to interface with MATLAB */
6 typedef struct {
7  int* dim;
8  int* dims;
9  void* value;
10  mxClassID* classID;
11  char* elementname;
12 } EQelement;
13 
14 /* structure prototype to interface with MATLAB */
15 typedef struct {
17  int numfields;
18 } EQstruct;
19 
20 
21 #ifdef __INTEL_COMPILER
22 void equus_c_mp_deallocateelement_( EQelement* eq_element );
23 #else
24 void __equus_c_MOD_deallocateelement( EQelement* eq_element );
25 #endif
26 
27 #ifdef __cplusplus
28  }
29 #endif
30 
35 void convert2FortranString( char* cstring, int strlength );
36 
41 void setField( EQelement* eq_field, mxArray* Mstruct );
42 
47 void setField( mxArray* field, const char* fieldname, mxArray* Mstruct );
48 
53 char** getFieldnames( EQstruct* eq_struct );
54 
58 void regularizeEQstruct( EQstruct* eq_struct );
int * dim
Definition: EQuUs_MATLAB.h:7
int numfields
Definition: EQuUs_MATLAB.h:17
int * dims
Definition: EQuUs_MATLAB.h:8
void * value
Definition: EQuUs_MATLAB.h:9
void convert2FortranString(char *cstring, int strlength)
Converts a C string into fortran compatible character array.
char ** getFieldnames(EQstruct *eq_struct)
Get all the element names stored in the eq_struct structure prototype.
void regularizeEQstruct(EQstruct *eq_struct)
Sort out invalid EQelements from an EQstruct structure prototype.
void setField(EQelement *eq_field, mxArray *Mstruct)
Set a field in a MATLAB structure.
EQelement * fields
Definition: EQuUs_MATLAB.h:16
mxClassID * classID
Definition: EQuUs_MATLAB.h:10
void __equus_c_MOD_deallocateelement(EQelement *eq_element)
char * elementname
Definition: EQuUs_MATLAB.h:11