CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
_zgematrix-complex.hpp File Reference

Go to the source code of this file.

Functions

_zgematrix operator* (const _zgematrix &mat, const comple &d)
 
_zgematrix operator/ (const _zgematrix &mat, const comple &d)
 

Function Documentation

_zgematrix operator* ( const _zgematrix mat,
const comple &  d 
)
inline

_zgematrix*comple operator

Definition at line 3 of file _zgematrix-complex.hpp.

References _zgematrix::array, _zgematrix::m, and _zgematrix::n.

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

_zgematrix/comple operator

Definition at line 13 of file _zgematrix-complex.hpp.

References _zgematrix::array, _zgematrix::m, and _zgematrix::n.

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