CPPLapack
 All Classes Files Functions Variables Friends
_dgsmatrix-constructor.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! _dgsmatrix constructor without arguments */
00003 inline _dgsmatrix::_dgsmatrix()
00004 {VERBOSE_REPORT;
00005   m =0;
00006   n =0;
00007   data.clear();
00008   rows.clear();
00009   cols.clear();
00010 }
00011 
00012 //=============================================================================
00013 /*! _dgsmatrix copy constructor */
00014 inline _dgsmatrix::_dgsmatrix(const _dgsmatrix& mat)
00015 {VERBOSE_REPORT;
00016   m =mat.m;
00017   n =mat.n;
00018   data.swap(mat.data);
00019   rows.swap(mat.rows);
00020   cols.swap(mat.cols);
00021   
00022   mat.nullify();
00023 }
00024 
00025 ///////////////////////////////////////////////////////////////////////////////
00026 ///////////////////////////////////////////////////////////////////////////////
00027 ///////////////////////////////////////////////////////////////////////////////
00028 
00029 //=============================================================================
00030 /*! _dgsmatrix destructor */
00031 inline _dgsmatrix::~_dgsmatrix()
00032 {VERBOSE_REPORT;
00033   data.clear();
00034   rows.clear();
00035   cols.clear();
00036 }
 All Classes Files Functions Variables Friends