00001 //============================================================================= 00002 /*! _zgsmatrix constructor without arguments */ 00003 inline _zgsmatrix::_zgsmatrix() 00004 {VERBOSE_REPORT; 00005 //////// initialize //////// 00006 m =0; 00007 n =0; 00008 data.clear(); 00009 rows.clear(); 00010 cols.clear(); 00011 } 00012 00013 //============================================================================= 00014 /*! _zgsmatrix copy constructor */ 00015 inline _zgsmatrix::_zgsmatrix(const _zgsmatrix& mat) 00016 {VERBOSE_REPORT; 00017 //////// initialize //////// 00018 m =mat.m; 00019 n =mat.n; 00020 data.swap(mat.data); 00021 rows.swap(mat.rows); 00022 cols.swap(mat.cols); 00023 00024 mat.nullify(); 00025 } 00026 00027 /////////////////////////////////////////////////////////////////////////////// 00028 /////////////////////////////////////////////////////////////////////////////// 00029 /////////////////////////////////////////////////////////////////////////////// 00030 00031 //============================================================================= 00032 /*! _zgsmatrix destructor */ 00033 inline _zgsmatrix::~_zgsmatrix() 00034 {VERBOSE_REPORT; 00035 data.clear(); 00036 rows.clear(); 00037 cols.clear(); 00038 }