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