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

Go to the source code of this file.

Functions

const _dgsmatrixoperator+ (const _dgsmatrix &mat)
 
_dgsmatrix operator- (const _dgsmatrix &mat)
 

Function Documentation

const _dgsmatrix& operator+ ( const _dgsmatrix mat)
inline

+_dgsmatrix operator

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

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

-_dgsmatrix operator

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

References _dgsmatrix::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: _dgsmatrix.hpp:11