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