1% @brief MATLAB Coder script to generate MEX functions
for map_
module.
3% This script generates MEX (MATLAB Executable) versions of MAP (Markovian
4% Arrival Process) functions for improved performance.
6% Skipped functions (Coder-incompatible):
7% map_m1ps_h_recursive - Returns a 2-D cell array of variable-size
8% vectors. Coder cannot infer cell-element types
9% constructed inside nested loops with @cell().
10% map_m1ps_sojourn - Uses inputParser/varargin, function handles in
11% validators, dynamic cell sizing, and the cell
12% output of map_m1ps_h_recursive.
14% See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
16%% Create configuration object of class 'coder.CodeConfig'.
17cfg = coder.config('mex','ecoder',false);
18cfg.GenerateReport =
false;
19cfg.ReportPotentialDifferences =
false;
20cfg.GenCodeOnly =
false;
23scal_type = coder.typeof(0);
24mat_type = coder.typeof(0,[Inf Inf],[1 1]);
26%% ===== Group: MAP rate-matrix computation =====
28% map_compute_R(C, D, mu) -> R
29codegen -config cfg map_compute_R -args {mat_type, mat_type, scal_type}