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