Main Content

Default function array layout

Description

Specify the default array layout for all external C functions used by C Caller block.

Category: Simulation Target

Settings

Default: Not specified

Column-major

Call all external C functions in column-major array layout.

Row-major

Call all external C functions in row-major array layout.

Any

Call all external C functions in column-major or row-major array layout. If your external function algorithms do not require the matrix data to be in a specific array layout, use this option.

Not specified

Call all external C functions in column-major or row-major array layout. 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) to warning or none.

Default function array layout parameter controls the default array layout of the custom code function. To specify array layout for individual functions, use Specify by function dialog box.

Command-Line Information

Parameter: DefaultCustomCodeFunctionArrayLayout
Type: character vector
Value: 'Column-major' | 'Row-major' | 'Any' | 'NotSpecified'
Default: 'NotSpecified'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics