File: D:\TMTmethod\simulator\codegen\mex\testspline\eye.c1 /* 2 * eye.c 3 * 4 * Code generation for function 'eye' 5 * 6 * C source code generated on: Thu Aug 30 14:03:55 2012 7 * 8 */ 9 10 /* Include files */ 11 #include "rt_nonfinite.h" 12 #include "testspline.h" 13 #include "eye.h" 14 15 /* Type Definitions */ 16 17 /* Named Constants */ 18 19 /* Variable Declarations */ 20 21 /* Variable Definitions */ 22 static emlrtRSInfo sf_emlrtRSI = { 25, "eye", "C:/Program Files/MATLAB/R2011b/toolbox/eml/lib/matlab/elmat/eye.m" }; 23 static emlrtRSInfo tf_emlrtRSI = { 50, "eye", "C:/Program Files/MATLAB/R2011b/toolbox/eml/lib/matlab/elmat/eye.m" }; 24 static emlrtBCInfo xd_emlrtBCI = { -1, -1, 60, 13, "", "eye", "C:/Program Files/MATLAB/R2011b/toolbox/eml/lib/matlab/elmat/eye.m", 0 }; 25 static emlrtBCInfo yd_emlrtBCI = { -1, -1, 60, 11, "", "eye", "C:/Program Files/MATLAB/R2011b/toolbox/eml/lib/matlab/elmat/eye.m", 0 }; 26 27 /* Function Declarations */ 28 29 /* Function Definitions */ 30 31 void eye(int32_T n, real_T I_data[1], int32_T I_sizes[2]) 32 { 33 int32_T loop_ub; 34 int32_T i8; 35 EMLRTPUSHRTSTACK(&sf_emlrtRSI); 36 EMLRTPUSHRTSTACK(&tf_emlrtRSI); 37 EMLRTPOPRTSTACK(&tf_emlrtRSI); 38 I_sizes[0] = n; 39 I_sizes[1] = n; 40 loop_ub = n * n - 1; 41 for (i8 = 0; i8 <= loop_ub; i8++) { 42 I_data[i8] = 0.0; 43 } 44 if (muIntScalarMin_sint32(n, n) > 0) { 45 emlrtDynamicBoundsCheck(1, 1, I_sizes[0], &yd_emlrtBCI); 46 emlrtDynamicBoundsCheck(1, 1, I_sizes[1], &xd_emlrtBCI); 47 I_data[0] = 1.0; 48 } 49 EMLRTPOPRTSTACK(&sf_emlrtRSI); 50 } 51 /* End of code generation (eye.c) */ 52 |