Default function array layout
Description
Specify how input array data is handled by external C/C++ functions and class methods. This parameter affects C/C++ functions and methods called by C Caller, C Function, MATLAB Function, and MATLAB System blocks and Stateflow® charts.
Category: Simulation Target
Settings
Default:
Not specified
Column-major
External C/C++ functions and class methods assume input array data is in column-major layout.
Row-major
External C/C++ functions and class methods assume input array data is in row-major layout.
Any
External C/C++ functions and class methods are indifferent about input data array layout. If your external function and class method algorithms do not require the matrix data to be in a specific array layout, for example if they perform only element-wise operations on input array data, use this option.
Not specified
External C/C++ functions and class methods make no assumption about input data array layout. However, if Array layout (Simulink Coder) is set to
Row-major
, Simulink® reports an error. You can turn off the error by changing the External functions compatibility for row-major code generation (Simulink Coder) towarning
ornone
.
The Default function array layout parameter controls the default array layout of custom code functions and class methods. To specify array layout for individual functions or class methods, click Exception by function.
Command-Line Information
Parameter:
DefaultCustomCodeFunctionArrayLayout |
Type: character vector |
Value:
'Column-major' |
'Row-major' |
'Any' |
'NotSpecified' |
Default:
'NotSpecified'
|
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No recommendation |
Safety precaution | No recommendation |