SAF
|
extras/safmex is a collection of MEX wrappers which allow SAF functions to be called within MATLAB.
Even for functions that have already been implemented in MATLAB, swapping them out for these wrappers has proved beneficial simply for the faster computations afforded by them. These wrappers also serve to bring SAF functionality to MATLAB, which is not already found in existing MATLAB libraries.
The easiest way to build the MEX wrappers is by enabling the SAF_BUILD_EXTRAS flag and building them via CMake.
Unix users:
Windows users:
You can install/copy the mex files into this folder with
Alternatively, the BUILD_SAFMEX.m script may be used to build the wrappers. However, note that since the SAF framework must be built via CMake anyway (in order to run this script), you might as well just use CMake...
extras/safmex/ comprises the following:
You will need MATLAB version 2017b or higher installed on your system. The remaining dependencies are then the same as the requirements when building the SAF framework.
Note that a few of the unit tests involve comparing the output of the safmex wrapper with that of an existing MATLAB implementation of the same function. Therefore, the following MATLAB libraries are required for running these unit tests:
Contributions are very much welcomed and encouraged. Please feel free to add more wrappers!