Go to the documentation of this file.00001
00002
00003 template<long l>
00004 inline dcovector_small<l>::dcovector_small()
00005 {VERBOSE_REPORT;
00006 ;
00007 }
00008
00009
00010
00011 template<long l>
00012 inline dcovector_small<l>::dcovector_small(const dcovector& vec)
00013 {VERBOSE_REPORT;
00014 #ifdef CPPL_DEBUG
00015 if( l!=vec.l ){
00016 ERROR_REPORT;
00017 std::cerr << "Vector sizes must be the same." << std::endl
00018 << "Your input was " << l << " and " << vec.l << "." << std::endl;
00019 exit(1);
00020 }
00021 #endif//CPPL_DEBUG
00022
00023 for(long k=0; k<l; k++){
00024 array[k] =vec.array[k];
00025 }
00026 }
00027
00028
00029
00030 template<long l>
00031 inline dcovector_small<l>::dcovector_small(const double& x)
00032 {VERBOSE_REPORT;
00033 for(long k=0; k<l; k++){
00034 array[k] =x;
00035 }
00036 }
00037
00038
00039
00040 template<long l>
00041 inline dcovector_small<l>::dcovector_small(const double& x, const double& y)
00042 {VERBOSE_REPORT;
00043 array[0] =x;
00044 array[1] =y;
00045 }
00046
00047
00048
00049 template<long l>
00050 inline dcovector_small<l>::dcovector_small(const double& x, const double& y, const double& z)
00051 {VERBOSE_REPORT;
00052 array[0] =x;
00053 array[1] =y;
00054 array[2] =z;
00055 }
00056
00057
00058
00059 template<long l>
00060 inline dcovector_small<l>::dcovector_small(const double& x, const double& y, const double& z, const double& r)
00061 {VERBOSE_REPORT;
00062 array[0] =x;
00063 array[1] =y;
00064 array[2] =z;
00065 array[3] =r;
00066 }
00067
00068
00069
00070
00071
00072
00073
00074 template<long l>
00075 inline dcovector_small<l>::~dcovector_small()
00076 {VERBOSE_REPORT;
00077 ;
00078 }