Improve scalar argument handling in MEX-function
- Correctly handle double scalars in MEX-function arguments using
mxGetScalar
andmxCreateDoubleScalar
. This can sometimes trigger warnings or errors in recentgfortran
versions. - Add mechanism to pass options to the MEX command directly with
MEXOPTS="..." make