CPPLapack
 All Classes Files Functions Variables Friends Pages
_dssmatrix-constructor.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _dssmatrix constructor without arguments */
4  :m(n)
5 {CPPL_VERBOSE_REPORT;
6  n =0;
7  data.clear();
8  line.clear();
9 }
10 
11 //=============================================================================
12 /*! _dssmatrix copy constructor */
14  :m(n)
15 {CPPL_VERBOSE_REPORT;
16  n =mat.n;
17  data.swap(mat.data);
18  line.swap(mat.line);
19 
20  mat.nullify();
21 }
22 
23 ///////////////////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////////////////
25 ///////////////////////////////////////////////////////////////////////////////
26 
27 //=============================================================================
28 /*! _dssmatrix destructor */
30 {CPPL_VERBOSE_REPORT;
31  data.clear();
32  line.clear();
33 }
std::vector< dcomponent > data
matrix data
Definition: _dssmatrix.hpp:12
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
Definition: _dssmatrix.hpp:3
CPPL_INT n
matrix column size
Definition: _dssmatrix.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: _dssmatrix.hpp:13
void nullify() const