CPPLapack
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Friends
Pages
include
_dsymatrix-
_dsymatrix-misc.hpp
Go to the documentation of this file.
1
//=============================================================================
2
/*! nullify all the matrix data */
3
inline
void
_dsymatrix::nullify
()
const
4
{CPPL_VERBOSE_REPORT;
5
n
=0;
6
array
=NULL;
7
darray
=NULL;
8
}
9
10
//=============================================================================
11
/*! destroy all the matrix data */
12
inline
void
_dsymatrix::destroy
()
const
13
{CPPL_VERBOSE_REPORT;
14
delete
[]
array
;
15
delete
[]
darray
;
16
array
=NULL;
17
darray
=NULL;
18
}
19
20
//=============================================================================
21
/*! complete the upper-right components */
22
inline
void
_dsymatrix::complete
()
const
23
{CPPL_VERBOSE_REPORT;
24
for
(CPPL_INT
i
=0;
i
<
n
;
i
++){
25
for
(CPPL_INT j=0; j<
i
; j++){
26
darray
[
i
][j] =
darray
[j][
i
];
27
}
28
}
29
}
_dsymatrix::i
friend _dsymatrix i(const _dsymatrix &)
Definition:
_dsymatrix-calc.hpp:15
_dsymatrix::destroy
void destroy() const
Definition:
_dsymatrix-misc.hpp:12
_dsymatrix::array
double * array
1D array to store matrix data
Definition:
_dsymatrix.hpp:12
_dsymatrix::darray
double ** darray
array of pointers of column head addresses
Definition:
_dsymatrix.hpp:13
_dsymatrix::complete
void complete() const
Definition:
_dsymatrix-misc.hpp:22
_dsymatrix::n
CPPL_INT n
matrix column size
Definition:
_dsymatrix.hpp:11
_dsymatrix::nullify
void nullify() const
Definition:
_dsymatrix-misc.hpp:3
Generated by
1.8.6