CPPLapack
 All Classes Files Functions Variables Friends Pages
dgrmatrix-constructor.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! dgrmatrix constructor without arguments */
4 {CPPL_VERBOSE_REPORT;
5  m =0;
6  n =0;
7 }
8 
9 ///////////////////////////////////////////////////////////////////////////////
10 ///////////////////////////////////////////////////////////////////////////////
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 //=============================================================================
14 /*! dgrmatrix copy constructor */
15 inline dgrmatrix::dgrmatrix(const dgrmatrix& mat)
16 {CPPL_VERBOSE_REPORT;
17  copy(mat);
18 }
19 
20 //=============================================================================
21 /*! dgrmatrix constructor with filename */
22 inline dgrmatrix::dgrmatrix(const char* filename)
23 {CPPL_VERBOSE_REPORT;
24  read(filename);
25 }
26 
27 ///////////////////////////////////////////////////////////////////////////////
28 ///////////////////////////////////////////////////////////////////////////////
29 ///////////////////////////////////////////////////////////////////////////////
30 
31 //=============================================================================
32 /*! dgrmatrix destructor */
34 {CPPL_VERBOSE_REPORT;
35  a.clear();
36  ia.clear();
37  ja.clear();
38 }
void read(const char *)
void copy(const dgrmatrix &)
std::vector< double > a
matrix component values
Definition: dgrmatrix.hpp:11
std::vector< CPPL_INT > ia
rowIndex (NOT zero-based BUT one-based indexing)
Definition: dgrmatrix.hpp:12
CPPL_INT n
matrix column size
Definition: dgrmatrix.hpp:10
CPPL_INT m
matrix row size
Definition: dgrmatrix.hpp:9
std::vector< CPPL_INT > ja
columns (NOT zero-based BUT one-based indexing)
Definition: dgrmatrix.hpp:13
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition: dgrmatrix.hpp:3