Closed BenjaminRodenberg closed 4 years ago
We do not have to hurry on this issue, but make sure to come to a reasonable decision before the release.
We should also make sure to add some security checks on user input. See here.
In terms of user usage, I have seen that using n x d
or d x n
is a heavily personal choice. However, MATLAB stores its arrays in column-major order (FORTRAN-like). As such, keeping the d x n
convention would save some memory-management steps in the interface with preCICE.
We could try keeping it as d x n
and see if there is some feedback or comments from users.
We should also make sure to add some security checks on user input. See here.
I added the security checks in #14.
However, MATLAB stores its arrays in column-major order (FORTRAN-like).
This sounds like we have a reasonable convention for MATLAB. Since #14 implements the checks, we also enforce this convention in our bindings. This closes the issue.
Old discussion (https://github.com/precice/precice/issues/458), but now for the MATLAB bindings.
Which format should we follow?
n x d
, since this would be consistent with what we are doing in the python bindings?d x n
, for other reasons? (maybe Fortran ordering is more common in MATLAB?)