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  dsymatrix newmat(mat.n);
13 
14  const CPPL_INT size =newmat.n*newmat.n;
15  for(CPPL_INT i=0; i<size; i++){
16  newmat.array[i] =-mat.array[i];
17  }
18 
19  return _(newmat);
20 }
_dsymatrix operator-(const dsymatrix &mat)
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
Definition: dsymatrix.hpp:3
const dsymatrix & operator+(const dsymatrix &mat)
CPPL_INT n
matrix column size
Definition: dsymatrix.hpp:10
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
Definition: _dsymatrix.hpp:3
double * array
1D array to store matrix data
Definition: dsymatrix.hpp:11
_dcovector _(dcovector &vec)