MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / GMT_Get_Matrix

Function GMT_Get_Matrix

src/gmt_api.c:15689–15698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15687#endif
15688
15689void * GMT_Get_Matrix (void *API, struct GMT_MATRIX *M) {
15690 /* Returns a pointer to the matrix. Users can consult
15691 * M->type to know what data type is pointed to. */
15692 void *matrix = NULL;
15693 if (API == NULL) return_null (API, GMT_NOT_A_SESSION);
15694 if (M == NULL) return_null (API, GMT_PTR_IS_NULL);
15695 if ((matrix = gmtapi_retrieve_vector (API, &(M->data), M->type)) == NULL)
15696 return_null (API, GMT_NOT_A_VALID_TYPE);
15697 return matrix;
15698}
15699
15700#ifdef FORTRAN_API
15701void * GMT_Get_Matrix_ (struct GMT_MATRIX *M) {

Callers 3

GMT_Get_Matrix_Function · 0.85
deploy_testFunction · 0.85
deploy_testFunction · 0.85

Calls 1

gmtapi_retrieve_vectorFunction · 0.85

Tested by 2

deploy_testFunction · 0.68
deploy_testFunction · 0.68