CPPLapack
 All Classes Files Functions Variables Friends Pages
_dssmatrix-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +_dssmatrix operator */
3 inline const _dssmatrix& operator+(const _dssmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
7 
8 //=============================================================================
9 /*! -_dssmatrix operator */
10 inline _dssmatrix operator-(const _dssmatrix& mat)
11 {CPPL_VERBOSE_REPORT;
12  const std::vector<dcomponent>::iterator mat_data_end =mat.data.end();
13  for(std::vector<dcomponent>::iterator it=mat.data.begin(); it!=mat_data_end; it++){
14  it->v =-it->v;
15  }
16 
17  return mat;
18 }
std::vector< dcomponent > data
matrix data
Definition: _dssmatrix.hpp:12
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
Definition: _dssmatrix.hpp:3
_dssmatrix operator-(const _dssmatrix &mat)
const _dssmatrix & operator+(const _dssmatrix &mat)