CPPLapack
 All Classes Files Functions Variables Friends Pages
comple-small.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! operator complex*zcovector_small */
3 template<CPPL_INT l>
4 inline zcovector_small<l> operator*(const comple& v, const zcovector_small<l>& A)
5 {CPPL_VERBOSE_REPORT;
7  for(CPPL_INT i=0; i<l; i++){
8  X(i) =v*A(i);
9  }
10  return X;
11 }
12 
13 //=============================================================================
14 /*! operator complex*zrovector_small */
15 template<CPPL_INT l>
16 inline zrovector_small<l> operator*(const comple& v, const zrovector_small<l>& A)
17 {CPPL_VERBOSE_REPORT;
19  for(CPPL_INT i=0; i<l; i++){
20  X(i) =v*A(i);
21  }
22  return X;
23 }
24 
25 //=============================================================================
26 /*! operator complex*zgematrix_small */
27 template<CPPL_INT m, CPPL_INT n>
28 inline zgematrix_small<m,n> operator*(const comple& v, const zgematrix_small<m,n>& A)
29 {CPPL_VERBOSE_REPORT;
31  for(CPPL_INT i=0; i<m; i++){
32  for(CPPL_INT j=0; j<n; j++){
33  C(i,j) =v*A(i,j);
34  }
35  }
36  return C;
37 }
38 
39 //=============================================================================
40 /*! operator complex*zhematrix_small */
41 template<CPPL_INT n>
42 inline zhematrix_small<n> operator*(const comple& v, const zhematrix_small<n>& A)
43 {CPPL_VERBOSE_REPORT;
45  for(CPPL_INT k=0; k<(n*(n+1))/2; k++){
46  X.array[k] =v*A.array[k];
47  }
48  return X;
49 }
comple array[(n *(n+1))/2]
_dgematrix i(const _dgbmatrix &mat)
Samll Complex Double-precision Column Vector Class.
Samll Complex Double-precision Row Vector Class.
Samll Complex Double-precision General Dence Matrix Class.
Samll Complex Double-precision Symmetric Matrix Class.
zcovector_small< l > operator*(const comple &v, const zcovector_small< l > &A)
Definition: comple-small.hpp:4