CPPLapack
 All Classes Files Functions Variables Friends
_zhematrix-calc.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! return transposed _zhematrix */
00003 inline _zhematrix t(const _zhematrix& mat)
00004 {VERBOSE_REPORT;
00005 #ifdef  CPPL_DEBUG
00006   WARNING_REPORT;
00007   std::cerr << "This function call has no effect since the matrix is symmetric." << std::endl;
00008 #endif//CPPL_DEBUG
00009   
00010   return mat;
00011 }
00012 
00013 //=============================================================================
00014 /*! return its inverse matrix */
00015 inline _zgematrix i(const _zhematrix& mat)
00016 {VERBOSE_REPORT;
00017   zhematrix mat_cp(mat);
00018   zgematrix mat_inv(mat_cp.n,mat_cp.n);
00019   mat_inv.identity();
00020   mat_cp.zhesv(mat_inv);
00021   
00022   return _(mat_inv);
00023 }
 All Classes Files Functions Variables Friends