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

Go to the source code of this file.

Functions

const _dssmatrixoperator+ (const _dssmatrix &mat)
 
_dssmatrix operator- (const _dssmatrix &mat)
 

Function Documentation

const _dssmatrix& operator+ ( const _dssmatrix mat)
inline

+_dssmatrix operator

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

4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
_dssmatrix operator- ( const _dssmatrix mat)
inline

-_dssmatrix operator

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

References _dssmatrix::data.

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