cumulative_sum.cpp
Go to the documentation of this file.
00001 /*
00002  * cumulative_sum.cpp
00003  *
00004  * Code generation for function 'cumulative_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 "cumulative_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 cumulative_sum(const real_T x[25], real_T csum[25])
00027 {
00028   int32_T i;
00029   memset(&csum[0], 0, 25U * sizeof(real_T));
00030   csum[0] = x[0];
00031   for (i = 0; i < 24; i++) {
00032     csum[1 + i] = x[1 + i] + csum[i];
00033   }
00034 }
00035 
00036 /* End of code generation (cumulative_sum.cpp) */


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