CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhsmatrix-constructor.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _zhsmatrix constructor without arguments */
4  :m(n)
5 {CPPL_VERBOSE_REPORT;
6  //////// initialize ////////
7  n =0;
8  data.clear();
9  line.clear();
10 }
11 
12 //=============================================================================
13 /*! _zhsmatrix copy constructor */
15  :m(n)
16 {CPPL_VERBOSE_REPORT;
17  //////// initialize ////////
18  n =mat.n;
19  data.swap(mat.data);
20  line.swap(mat.line);
21 
22  mat.nullify();
23 }
24 
25 ///////////////////////////////////////////////////////////////////////////////
26 ///////////////////////////////////////////////////////////////////////////////
27 ///////////////////////////////////////////////////////////////////////////////
28 
29 //=============================================================================
30 /*! _zhsmatrix destructor */
32 {CPPL_VERBOSE_REPORT;
33  data.clear();
34  line.clear();
35 }
std::vector< zcomponent > data
matrix data
Definition: _zhsmatrix.hpp:12
void nullify() const
CPPL_INT n
matrix column size
Definition: _zhsmatrix.hpp:11
std::vector< std::vector< CPPL_INT > > line
vector of vector to store the entry information of component for each row and column ...
Definition: _zhsmatrix.hpp:13
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Sparse Matrix Class ...
Definition: _zhsmatrix.hpp:3