CPPLapack
 All Classes Files Functions Variables Friends
zhematrix-complex.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! zhematrix*comple operator */
00003 inline _zgematrix operator*(const zhematrix& mat, const comple& d)
00004 {VERBOSE_REPORT;
00005   mat.complete();
00006   zgematrix newmat(mat.n, mat.n);
00007   for(long i=0; i<mat.n*mat.n; i++){ newmat.array[i] =mat.array[i]*d; }
00008   
00009   return _(newmat);
00010 }
00011 
00012 //=============================================================================
00013 /*! zhematrix/comple operator */
00014 inline _zgematrix operator/(const zhematrix& mat, const comple& d)
00015 {VERBOSE_REPORT;
00016   mat.complete();
00017   zgematrix newmat(mat.n, mat.n);
00018   for(long i=0; i<mat.n*mat.n; i++){ newmat.array[i] =mat.array[i]/d; }
00019   
00020   return _(newmat);
00021 }
 All Classes Files Functions Variables Friends