https://nl.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html
the article above mentions the following for MEX files.
"You can continue to use the 32-bit API by calling the mex command with the -compatibleArrayDims option"
We are calling the API functions via JNA. In other words, we are invoking functions exposed from libraries such as libmat and libmx. Is there a compatibleArrayDims option that we can use? Because it looks like this option is meant for MEX files only and we are not using MEX files