rand.cpp
Go to the documentation of this file.
00001 /*
00002  * rand.cpp
00003  *
00004  * Code generation for function 'rand'
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 "rand.h"
00014 #include "randn.h"
00015 #include "Optimal_affine_tracking_3d16_fast_realtime_data.h"
00016 
00017 /* Type Definitions */
00018 
00019 /* Named Constants */
00020 
00021 /* Variable Declarations */
00022 
00023 /* Variable Definitions */
00024 
00025 /* Function Declarations */
00026 static void eml_rand_mt19937ar_stateful(real_T r[1843200]);
00027 
00028 /* Function Definitions */
00029 static void eml_rand_mt19937ar_stateful(real_T r[1843200])
00030 {
00031   int32_T k;
00032   real_T d0;
00033   for (k = 0; k < 1843200; k++) {
00034     d0 = genrandu(state);
00035     r[k] = d0;
00036   }
00037 }
00038 
00039 void b_rand(real_T r[1843200])
00040 {
00041   if (!method_not_empty) {
00042     method_not_empty = TRUE;
00043   }
00044 
00045   eml_rand_mt19937ar_stateful(r);
00046 }
00047 
00048 real_T c_rand(void)
00049 {
00050   if (!method_not_empty) {
00051     method_not_empty = TRUE;
00052   }
00053 
00054   return genrandu(state);
00055 }
00056 
00057 /* End of code generation (rand.cpp) */


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