CPPLapack
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Friends
Pages
include
small
dgematrix_small-constructors.hpp
Go to the documentation of this file.
1
//=============================================================================
2
/*! dgematrix_small constructor */
3
template
<CPPL_INT m, CPPL_INT n>
4
inline
dgematrix_small<m,n>::dgematrix_small
()
5
{CPPL_VERBOSE_REPORT;
6
;
7
}
8
9
//=============================================================================
10
/*! dgematrix_small constructor */
11
template
<CPPL_INT m, CPPL_INT n>
12
inline
dgematrix_small<m,n>::dgematrix_small
(
const
dgematrix
& mat)
13
{CPPL_VERBOSE_REPORT;
14
#ifdef CPPL_DEBUG
15
if
( m!=mat.
m
|| n!=mat.
n
){
16
ERROR_REPORT;
17
std::cerr <<
"Matrix sizes must be the same."
<< std::endl
18
<<
"Your input was "
<< m <<
"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<m*n; k++){
24
array[k] =mat.
array
[k];
25
}
26
}
27
28
///////////////////////////////////////////////////////////////////////////////
29
///////////////////////////////////////////////////////////////////////////////
30
///////////////////////////////////////////////////////////////////////////////
31
32
//=============================================================================
33
/*! dgematrix_small destructor */
34
template
<CPPL_INT m, CPPL_INT n>
35
inline
dgematrix_small<m,n>::~dgematrix_small
()
36
{CPPL_VERBOSE_REPORT;
37
;
38
}
dgematrix::m
CPPL_INT m
matrix row size
Definition:
dgematrix.hpp:9
dgematrix::array
double * array
1D array to store matrix data
Definition:
dgematrix.hpp:11
dgematrix_small::dgematrix_small
dgematrix_small()
Definition:
dgematrix_small-constructors.hpp:4
dgematrix::n
CPPL_INT n
matrix column size
Definition:
dgematrix.hpp:10
dgematrix
Real Double-precision General Dence Matrix Class.
Definition:
dgematrix.hpp:3
dgematrix_small::~dgematrix_small
~dgematrix_small()
Definition:
dgematrix_small-constructors.hpp:35
Generated by
1.8.6