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

Go to the source code of this file.

Functions

_dgbmatrix operator* (const double &d, const _dgbmatrix &mat)
 

Function Documentation

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

double*_dgbmatrix operator

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

References _dgbmatrix::array, _dgbmatrix::kl, _dgbmatrix::ku, and _dgbmatrix::n.

4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT size =(mat.kl+mat.ku+1)*mat.n;
6  CPPL_INT inc =1;
7  dscal_(&size, &d, mat.array, &inc);
8  return mat;
9 }
CPPL_INT ku
upper band width
Definition: _dgbmatrix.hpp:12
CPPL_INT kl
lower band width
Definition: _dgbmatrix.hpp:11
CPPL_INT n
matrix column size
Definition: _dgbmatrix.hpp:10
double * array
1D array to store matrix data
Definition: _dgbmatrix.hpp:13