CPPLapack
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Friends
Pages
include
small
zhematrix_small-constructors.hpp
Go to the documentation of this file.
1
//=============================================================================
2
/*! zhematrix_small constructor */
3
template
<CPPL_INT n>
4
inline
zhematrix_small<n>::zhematrix_small
()
5
{CPPL_VERBOSE_REPORT;
6
;
7
}
8
9
//=============================================================================
10
/*! zhematrix_small constructor */
11
template
<CPPL_INT n>
12
inline
zhematrix_small<n>::zhematrix_small
(
const
zhematrix
& mat)
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
/*! zhematrix_small destructor */
34
template
<CPPL_INT n>
35
inline
zhematrix_small<n>::~zhematrix_small
()
36
{CPPL_VERBOSE_REPORT;
37
;
38
}
zhematrix::m
CPPL_INT const & m
matrix row size
Definition:
zhematrix.hpp:10
zhematrix::n
CPPL_INT n
matrix column size
Definition:
zhematrix.hpp:11
zhematrix::array
comple * array
1D array to store matrix data
Definition:
zhematrix.hpp:12
zhematrix_small::~zhematrix_small
~zhematrix_small()
Definition:
zhematrix_small-constructors.hpp:35
zhematrix_small::zhematrix_small
zhematrix_small()
Definition:
zhematrix_small-constructors.hpp:4
zhematrix
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition:
zhematrix.hpp:4
Generated by
1.8.6