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

Go to the source code of this file.

Functions

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

Function Documentation

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

_zhematrix*double operator

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

References _zhematrix::array, and _zhematrix::n.

4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT size =mat.n*mat.n;
6  CPPL_INT inc =1;
7  zdscal_(&size, &d, mat.array, &inc);
8  return mat;
9 }
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
comple * array
1D array to store matrix data
Definition: _zhematrix.hpp:12
_zhematrix operator/ ( const _zhematrix mat,
const double &  d 
)
inline

_zhematrix/double operator

Definition at line 13 of file _zhematrix-double.hpp.

References _zhematrix::array, and _zhematrix::n.

14 {CPPL_VERBOSE_REPORT;
15  CPPL_INT size =mat.n*mat.n;
16  double dinv =1./d;
17  CPPL_INT inc =1;
18  zdscal_(&size, &dinv, mat.array, &inc);
19  return mat;
20 }
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
comple * array
1D array to store matrix data
Definition: _zhematrix.hpp:12