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