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

Go to the source code of this file.

Functions

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

Function Documentation

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

zhematrix*comple operator

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

References _(), zgematrix::array, zhematrix::array, zhematrix::complete(), i(), and zhematrix::n.

{VERBOSE_REPORT;
  mat.complete();
  zgematrix newmat(mat.n, mat.n);
  for(long i=0; i<mat.n*mat.n; i++){ newmat.array[i] =mat.array[i]*d; }
  
  return _(newmat);
}
_zgematrix operator/ ( const zhematrix mat,
const comple &  d 
) [inline]

zhematrix/comple operator

Definition at line 14 of file zhematrix-complex.hpp.

References _(), zgematrix::array, zhematrix::array, zhematrix::complete(), i(), and zhematrix::n.

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