CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
_dsymatrix-double.hpp File Reference

Go to the source code of this file.

Functions

_dsymatrix operator* (const _dsymatrix &mat, const double &d)
 
_dsymatrix operator/ (const _dsymatrix &mat, const double &d)
 

Function Documentation

_dsymatrix operator* ( const _dsymatrix mat,
const double &  d 
)
inline

_dsymatrix*double operator

Definition at line 3 of file _dsymatrix-double.hpp.

References _dsymatrix::darray, i(), and _dsymatrix::n.

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 }
_dgematrix i(const _dgbmatrix &mat)
double ** darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:13
CPPL_INT n
matrix column size
Definition: _dsymatrix.hpp:11
_dsymatrix operator/ ( const _dsymatrix mat,
const double &  d 
)
inline

dsymatrix/double operator

Definition at line 16 of file _dsymatrix-double.hpp.

References _dsymatrix::darray, i(), and _dsymatrix::n.

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)
double ** darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:13
CPPL_INT n
matrix column size
Definition: _dsymatrix.hpp:11