LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mexify.m
1% @brief MATLAB Coder script to generate MEX functions for lossn_ module.
2%
3% This script generates MEX (MATLAB Executable) versions of loss-network
4% functions for improved performance.
5%
6% See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
7
8%% Create configuration object of class 'coder.CodeConfig'.
9cfg = coder.config('mex','ecoder',false);
10cfg.GenerateReport = false;
11cfg.ReportPotentialDifferences = false;
12cfg.GenCodeOnly = false;
13
14%% Define common types
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]);
18
19%% ===== Group: Erlang fixed-point approximation =====
20
21% lossn_erlangfp(nu, A, C) -> [QLen, Loss, E, niter]
22codegen -config cfg lossn_erlangfp -args {vec_type, mat_type, col_vec_type}