CPPLapack
 All Classes Files Functions Variables Friends Pages
dsymatrix_small-constructors.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! dsymatrix_small constructor */
3 template<CPPL_INT n>
5 {CPPL_VERBOSE_REPORT;
6  ;
7 }
8 
9 //=============================================================================
10 /*! dsymatrix_small constructor */
11 template<CPPL_INT n>
13 {CPPL_VERBOSE_REPORT;
14 #ifdef CPPL_DEBUG
15  if( n!=mat.n ){
16  ERROR_REPORT;
17  std::cerr << "Matrix sizes must be the same." << std::endl
18  << "Your input was " << n << "x" << n << " and " << mat.m << "x" << mat.n << "." << std::endl;
19  exit(1);
20  }
21 #endif//CPPL_DEBUG
22 
23  for(CPPL_INT k=0; k<(n*(n+1))/2; k++){
24  array[k] =mat.array[k];
25  }
26 }
27 
28 ///////////////////////////////////////////////////////////////////////////////
29 ///////////////////////////////////////////////////////////////////////////////
30 ///////////////////////////////////////////////////////////////////////////////
31 
32 //=============================================================================
33 /*! dsymatrix_small destructor */
34 template<CPPL_INT n>
36 {CPPL_VERBOSE_REPORT;
37  ;
38 }
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
Definition: dsymatrix.hpp:3
CPPL_INT const & m
matrix row size
Definition: dsymatrix.hpp:9
CPPL_INT n
matrix column size
Definition: dsymatrix.hpp:10
double * array
1D array to store matrix data
Definition: dsymatrix.hpp:11