My Project
dsymatrix-calc.hpp
1 //=============================================================================
3 inline _dsymatrix t(const dsymatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] t(const dsymatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10 #ifdef CPPL_DEBUG
11  std::cerr << "[WARNING] t(const dsymatrix&)" << std::endl
12  << "This function call has no effect "
13  << "since the matrix is symmetric." << std::endl;
14 #endif//CPPL_DEBUG
15 
16  dsymatrix newmat(mat);
17  return _(newmat);
18 }
19 
20 //=============================================================================
22 inline _dgematrix i(const dsymatrix& mat)
23 {
24 #ifdef CPPL_VERBOSE
25  std::cerr << "# [MARK] i(const dsymatrix&)"
26  << std::endl;
27 #endif//CPPL_VERBOSE
28 
29  dsymatrix mat_cp(mat);
30  dgematrix mat_inv(mat.N,mat.N);
31  mat_inv.identity();
32  mat_cp.dsysv(mat_inv);
33 
34  return _(mat_inv);
35 }
Real Double-precision General Dence Matrix Class.
Definition: dgematrix.hpp:3
Real Double-precision Symmetric Matrix Class [L-type (UPLO=L) Strage].
Definition: dsymatrix.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
friend _dcovector t(const drovector &)
Definition: drovector-calc.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
Definition: _dsymatrix.hpp:3