CPPLapack
 All Classes Files Functions Variables Friends Pages
_zgbmatrix-cast.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! convert to _zgematrix */
4 {CPPL_VERBOSE_REPORT;
5  zgematrix newmat( zgematrix(m,n).zero() );
6 
7  for(CPPL_INT i=0; i<m; i++){
8  const CPPL_INT jmax =std::min(n,i+ku+1);
9  for(CPPL_INT j=std::max(CPPL_INT(0),i-kl); j<jmax; j++){
10  newmat(i,j) =(*this)(i,j);
11  }
12  }
13 
14  destroy();
15  return _(newmat);
16 }
CPPL_INT ku
upper band width
Definition: _zgbmatrix.hpp:12
CPPL_INT kl
lower band width
Definition: _zgbmatrix.hpp:11
void destroy() const
_zgematrix to_zgematrix() const
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
CPPL_INT m
matrix row size
Definition: _zgbmatrix.hpp:9
CPPL_INT n
matrix column size
Definition: _zgbmatrix.hpp:10
_dcovector _(dcovector &vec)
friend _zgematrix i(const _zgbmatrix &)