Go to the documentation of this file.00001
00002
00003 template<long l>
00004 inline drovector_small<l>::drovector_small()
00005 {VERBOSE_REPORT;
00006 ;
00007 }
00008
00009
00010
00011 template<long l>
00012 inline drovector_small<l>::drovector_small(const drovector& 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 drovector_small<l>::drovector_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 drovector_small<l>::drovector_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 drovector_small<l>::drovector_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
00060
00061
00062
00063 template<long l>
00064 inline drovector_small<l>::~drovector_small()
00065 {VERBOSE_REPORT;
00066 ;
00067 }