CPPLapack
 All Classes Files Functions Variables Friends
Functions
_zhematrix-calc.hpp File Reference

Go to the source code of this file.

Functions

_zhematrix t (const _zhematrix &mat)
_zgematrix i (const _zhematrix &mat)

Function Documentation

_zhematrix t ( const _zhematrix mat) [inline]

return transposed _zhematrix

Definition at line 3 of file _zhematrix-calc.hpp.

{VERBOSE_REPORT;
#ifdef  CPPL_DEBUG
  WARNING_REPORT;
  std::cerr << "This function call has no effect since the matrix is symmetric." << std::endl;
#endif//CPPL_DEBUG
  
  return mat;
}
_zgematrix i ( const _zhematrix mat) [inline]

return its inverse matrix

Definition at line 15 of file _zhematrix-calc.hpp.

References _(), zgematrix::identity(), zhematrix::n, and zhematrix::zhesv().

{VERBOSE_REPORT;
  zhematrix mat_cp(mat);
  zgematrix mat_inv(mat_cp.n,mat_cp.n);
  mat_inv.identity();
  mat_cp.zhesv(mat_inv);
  
  return _(mat_inv);
}
 All Classes Files Functions Variables Friends