sum.cpp
Go to the documentation of this file.
00001 /*
00002  * sum.cpp
00003  *
00004  * Code generation for function 'sum'
00005  *
00006  * C source code generated on: Wed Jul 24 16:11:35 2013
00007  *
00008  */
00009 
00010 /* Include files */
00011 #include "rt_nonfinite.h"
00012 #include "Optimal_affine_tracking_3d16_fast_realtime.h"
00013 #include "sum.h"
00014 
00015 /* Type Definitions */
00016 
00017 /* Named Constants */
00018 
00019 /* Variable Declarations */
00020 
00021 /* Variable Definitions */
00022 
00023 /* Function Declarations */
00024 
00025 /* Function Definitions */
00026 void b_sum(const creal_T x[7776], creal_T y[6])
00027 {
00028   int32_T ix;
00029   int32_T iy;
00030   int32_T i;
00031   int32_T ixstart;
00032   real_T s_re;
00033   real_T s_im;
00034   ix = -1;
00035   iy = -1;
00036   for (i = 0; i < 6; i++) {
00037     ixstart = ix + 1;
00038     ix++;
00039     s_re = x[ixstart].re;
00040     s_im = x[ixstart].im;
00041     for (ixstart = 0; ixstart < 1295; ixstart++) {
00042       ix++;
00043       s_re += x[ix].re;
00044       s_im += x[ix].im;
00045     }
00046 
00047     iy++;
00048     y[iy].re = s_re;
00049     y[iy].im = s_im;
00050   }
00051 }
00052 
00053 real_T c_sum(const real_T x[25])
00054 {
00055   real_T y;
00056   int32_T k;
00057   y = x[0];
00058   for (k = 0; k < 24; k++) {
00059     y += x[k + 1];
00060   }
00061 
00062   return y;
00063 }
00064 
00065 void sum(const real_T x[3888], real_T y[3])
00066 {
00067   int32_T iy;
00068   int32_T ixstart;
00069   int32_T j;
00070   int32_T ix;
00071   real_T s;
00072   int32_T k;
00073   iy = -1;
00074   ixstart = -1;
00075   for (j = 0; j < 3; j++) {
00076     ixstart++;
00077     ix = ixstart;
00078     s = x[ixstart];
00079     for (k = 0; k < 1295; k++) {
00080       ix += 3;
00081       s += x[ix];
00082     }
00083 
00084     iy++;
00085     y[iy] = s;
00086   }
00087 }
00088 
00089 /* End of code generation (sum.cpp) */


depth_tracker_ros_vr8
Author(s): shusain
autogenerated on Fri Dec 6 2013 20:45:47