CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
zrovector-unary.hpp File Reference

Go to the source code of this file.

Functions

const zrovectoroperator+ (const zrovector &vec)
 
_zrovector operator- (const zrovector &vec)
 

Function Documentation

const zrovector& operator+ ( const zrovector vec)
inline

+zrovector operator

Definition at line 3 of file zrovector-unary.hpp.

4 {CPPL_VERBOSE_REPORT;
5  return vec;
6 }
_zrovector operator- ( const zrovector vec)
inline

-zrovector operator

Definition at line 10 of file zrovector-unary.hpp.

References _(), zrovector::array, i(), and zrovector::l.

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 }
CPPL_INT l
vector size
Definition: zrovector.hpp:9
_dgematrix i(const _dgbmatrix &mat)
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