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