CPPLapack
 All Classes Files Functions Variables Friends
double-small.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*!  */
00003 template<long l>
00004 inline dcovector_small<l> operator*(const double& v, const dcovector_small<l>& A)
00005 {VERBOSE_REPORT;
00006   dcovector_small<l> X;
00007   for(long i=0; i<l; i++){
00008     X(i) =v*A(i);
00009   }
00010   return X;
00011 }
00012 
00013 //=============================================================================
00014 /*!  */
00015 template<long l>
00016 inline drovector_small<l> operator*(const double& v, const drovector_small<l>& A)
00017 {VERBOSE_REPORT;
00018   drovector_small<l> X;
00019   for(long i=0; i<l; i++){
00020     X(i) =v*A(i);
00021   }
00022   return X;
00023 }
00024 
00025 //=============================================================================
00026 /*!  */
00027 template<long m, long n>
00028 inline dgematrix_small<m,n> operator*(const double& v, const dgematrix_small<m,n>& A)
00029 {VERBOSE_REPORT;
00030   dgematrix_small<m,n> C;
00031   for(long i=0; i<m; i++){
00032     for(long j=0; j<n; j++){
00033       C(i,j) =v*A(i,j);
00034     }
00035   }
00036   return C;
00037 }
00038 
00039 //=============================================================================
00040 /*!  */
00041 template<long n>
00042 inline dsymatrix_small<n> operator*(const double& v, const dsymatrix_small<n>& A)
00043 {VERBOSE_REPORT;
00044   dsymatrix_small<n> X;
00045   for(long k=0; k<(n*(n+1))/2; k++){
00046     X.array[k] =v*A.array[k];
00047   }
00048   return X;
00049 }
00050 
00051 ///////////////////////////////////////////////////////////////////////////////
00052 ///////////////////////////////////////////////////////////////////////////////
00053 ///////////////////////////////////////////////////////////////////////////////
00054 
00055 //=============================================================================
00056 /*!  */
00057 template<long l>
00058 inline zcovector_small<l> operator*(const double& v, const zcovector_small<l>& A)
00059 {VERBOSE_REPORT;
00060   zcovector_small<l> X;
00061   for(long i=0; i<l; i++){
00062     X(i) =v*A(i);
00063   }
00064   return X;
00065 }
00066 
00067 //=============================================================================
00068 /*!  */
00069 template<long l>
00070 inline zrovector_small<l> operator*(const double& v, const zrovector_small<l>& A)
00071 {VERBOSE_REPORT;
00072   zrovector_small<l> X;
00073   for(long i=0; i<l; i++){
00074     X(i) =v*A(i);
00075   }
00076   return X;
00077 }
00078 
00079 //=============================================================================
00080 /*!  */
00081 template<long m, long n>
00082 inline zgematrix_small<m,n> operator*(const double& v, const zgematrix_small<m,n>& A)
00083 {VERBOSE_REPORT;
00084   zgematrix_small<m,n> C;
00085   for(long i=0; i<m; i++){
00086     for(long j=0; j<n; j++){
00087       C(i,j) =v*A(i,j);
00088     }
00089   }
00090   return C;
00091 }
00092 
00093 //=============================================================================
00094 /*!  */
00095 template<long n>
00096 inline zhematrix_small<n> operator*(const double& v, const zhematrix_small<n>& A)
00097 {VERBOSE_REPORT;
00098   zhematrix_small<n> X;
00099   for(long k=0; k<(n*(n+1))/2; k++){
00100     X.array[k] =v*A.array[k];
00101   }
00102   return X;
00103 }
 All Classes Files Functions Variables Friends