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

Go to the source code of this file.

Functions

_zgbmatrix operator* (const zgbmatrix &mat, const comple &d)
_zgbmatrix operator/ (const zgbmatrix &mat, const comple &d)

Function Documentation

_zgbmatrix operator* ( const zgbmatrix mat,
const comple &  d 
) [inline]

zgbmatrix*comple operator

Definition at line 23 of file zgbmatrix-complex.hpp.

References _(), zgbmatrix::array, i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.

{VERBOSE_REPORT;
  zgbmatrix newmat(mat.m, mat.n, mat.kl, mat.ku);
  for(long i=0; i<(newmat.kl+newmat.ku+1)*newmat.n; i++){
    newmat.array[i] =mat.array[i]*d;
  }
  
  return _(newmat);
}
_zgbmatrix operator/ ( const zgbmatrix mat,
const comple &  d 
) [inline]

zgbmatrix/comple operator

Definition at line 35 of file zgbmatrix-complex.hpp.

References _(), zgbmatrix::array, i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.

{VERBOSE_REPORT;
  zgbmatrix newmat(mat.m, mat.n, mat.kl, mat.ku);
  for(long i=0; i<(newmat.kl+newmat.ku+1)*newmat.n; i++){
    newmat.array[i] =mat.array[i]/d;
  }
  
  return _(newmat);
}
 All Classes Files Functions Variables Friends