CPPLapack
 All Classes Files Functions Variables Friends Pages
zcovector-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +zcovector operator */
3 inline const zcovector& operator+(const zcovector& vec)
4 {CPPL_VERBOSE_REPORT;
5  return vec;
6 }
7 
8 //=============================================================================
9 /*! -zcovector operator */
10 inline _zcovector operator-(const zcovector& vec)
11 {CPPL_VERBOSE_REPORT;
12  zcovector newvec(vec.l);
13  for(CPPL_INT i=0; i<newvec.l; i++){ newvec.array[i]=-vec.array[i]; }
14 
15  return _(newvec);
16 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
_zcovector operator-(const zcovector &vec)
_dgematrix i(const _dgbmatrix &mat)
const zcovector & operator+(const zcovector &vec)
Complex Double-precision Column Vector Class.
Definition: zcovector.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Column Vector Class
Definition: _zcovector.hpp:3
_dcovector _(dcovector &vec)