1% @brief MATLAB Coder script to generate MEX functions
for lossn_
module.
3% This script generates MEX (MATLAB Executable) versions of loss-network
4% functions for improved performance.
6% See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
8%% Create configuration object of class 'coder.CodeConfig'.
9cfg = coder.config('mex','ecoder',false);
10cfg.GenerateReport =
false;
11cfg.ReportPotentialDifferences =
false;
12cfg.GenCodeOnly =
false;
15vec_type = coder.typeof(0,[1 Inf],[0 1]);
16col_vec_type = coder.typeof(0,[Inf 1],[1 0]);
17mat_type = coder.typeof(0,[Inf Inf],[1 1]);
19%% ===== Group: Erlang fixed-point approximation =====
21% lossn_erlangfp(nu, A, C) -> [QLen, Loss, E, niter]
22codegen -config cfg lossn_erlangfp -args {vec_type, mat_type, col_vec_type}