diag.cpp
Go to the documentation of this file.
00001 /*
00002  * diag.cpp
00003  *
00004  * Code generation for function 'diag'
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 "diag.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_diag(const creal_T v[2], creal_T d[4])
00027 {
00028   int32_T j;
00029   for (j = 0; j < 4; j++) {
00030     d[j].re = 0.0;
00031     d[j].im = 0.0;
00032   }
00033 
00034   for (j = 0; j < 2; j++) {
00035     d[j + (j << 1)] = v[j];
00036   }
00037 }
00038 
00039 void diag(const creal_T v[3], creal_T d[9])
00040 {
00041   int32_T j;
00042   for (j = 0; j < 9; j++) {
00043     d[j].re = 0.0;
00044     d[j].im = 0.0;
00045   }
00046 
00047   for (j = 0; j < 3; j++) {
00048     d[j + 3 * j] = v[j];
00049   }
00050 }
00051 
00052 /* End of code generation (diag.cpp) */


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