CPPLapack
 All Classes Files Functions Variables Friends Pages
_dsymatrix-double.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _dsymatrix*double operator */
3 inline _dsymatrix operator*(const _dsymatrix& mat, const double& d)
4 {CPPL_VERBOSE_REPORT;
5  for(CPPL_INT j=0; j<mat.n; j++){
6  for(CPPL_INT i=j; i<mat.n; i++){
7  mat.darray[j][i] *=d;
8  }
9  }
10 
11  return mat;
12 }
13 
14 //=============================================================================
15 /*! dsymatrix/double operator */
16 inline _dsymatrix operator/(const _dsymatrix& mat, const double& d)
17 {CPPL_VERBOSE_REPORT;
18  for(CPPL_INT j=0; j<mat.n; j++){
19  for(CPPL_INT i=j; i<mat.n; i++){
20  mat.darray[j][i] /=d;
21  }
22  }
23 
24  return mat;
25 }
_dgematrix i(const _dgbmatrix &mat)
_dsymatrix operator/(const _dsymatrix &mat, const double &d)
double ** darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:13
_dsymatrix operator*(const _dsymatrix &mat, const double &d)
(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