File: indexShapeCheck.c1 /* 2 * indexShapeCheck.c 3 * 4 * Code generation for function 'indexShapeCheck' 5 * 6 */ 7 8 /* Include files */ 9 #include "rt_nonfinite.h" 10 #include "gjbf.h" 11 #include "indexShapeCheck.h" 12 #include "gjbf_data.h" 13 #include "blas.h" 14 15 /* Variable Definitions */ 16 static emlrtRSInfo yc_emlrtRSI = { 18, "indexShapeCheck", 17 "C:\\Program Files\\MATLAB\\R2016a\\toolbox\\eml\\eml\\+coder\\+internal\\indexShapeCheck.m" 18 }; 19 20 /* Function Definitions */ 21 void indexShapeCheck(const emlrtStack *sp, int32_T matrixSize, const int32_T 22 indexSize[2]) 23 { 24 boolean_T guard1 = false; 25 boolean_T nonSingletonDimFound; 26 emlrtStack st; 27 st.prev = sp; 28 st.tls = sp->tls; 29 guard1 = false; 30 if (!(matrixSize != 1)) { 31 nonSingletonDimFound = false; 32 if (indexSize[0] != 1) { 33 nonSingletonDimFound = true; 34 } 35 36 if (indexSize[1] != 1) { 37 if (nonSingletonDimFound) { 38 nonSingletonDimFound = false; 39 } else { 40 nonSingletonDimFound = true; 41 } 42 } 43 44 if (nonSingletonDimFound) { 45 nonSingletonDimFound = true; 46 } else { 47 guard1 = true; 48 } 49 } else { 50 guard1 = true; 51 } 52 53 if (guard1) { 54 nonSingletonDimFound = false; 55 } 56 57 st.site = &yc_emlrtRSI; 58 if (!nonSingletonDimFound) { 59 } else { 60 emlrtErrorWithMessageIdR2012b(&st, &t_emlrtRTEI, 61 "Coder:FE:PotentialVectorVector", 0); 62 } 63 } 64 65 /* End of code generation (indexShapeCheck.c) */ 66 |