| 60 | } |
| 61 | |
| 62 | HIGHS_EXTRAS_API bool HighsExtras_getApi(HighsExtrasApi* api) { |
| 63 | if (!api) return false; |
| 64 | |
| 65 | *api = HighsExtrasApi{}; |
| 66 | |
| 67 | // set function pointers for each feature API, if available |
| 68 | // i.e., use direct descriptor to set the storage value |
| 69 | #ifdef HIPO |
| 70 | |
| 71 | bind_api<amd_methods>(api, |
| 72 | std::make_tuple(&Highs_amd_defaults, &Highs_amd_order)); |
| 73 | |
| 74 | bind_api<blas_methods>( |
| 75 | api, |
| 76 | std::make_tuple(&cblas_daxpy, &cblas_dcopy, &cblas_dscal, &cblas_dswap, |
| 77 | &cblas_dgemv, &cblas_dtpsv, &cblas_dtrsv, &cblas_dger, |
| 78 | &cblas_dgemm, &cblas_dsyrk, &cblas_dtrsm, |
| 79 | &highs_openblas_set_num_threads)); |
| 80 | |
| 81 | bind_api<metis_methods>(api, std::make_tuple(&Highs_METIS_SetDefaultOptions, |
| 82 | &Highs_METIS_NodeND)); |
| 83 | |
| 84 | bind_api<rcm_methods>(api, std::make_tuple(&Highs_genrcm)); |
| 85 | |
| 86 | #endif |
| 87 | |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | } // extern "C" |