CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhematrix.hpp
Go to the documentation of this file.
1 //=============================================================================
2 //! (DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
3 class _zhematrix
4 {
5 public:
6  ///////////////////////////////////////////////
7  /////////////////// objects ///////////////////
8  ///////////////////////////////////////////////
9  //mutable CPPL_INT const& m;//!< matrix row and size
10  CPPL_INT const& m;//!< matrix row and size
11  mutable CPPL_INT n; //!< matrix column size
12  mutable comple* array; //!< 1D array to store matrix data
13  mutable comple** darray; //!< array of pointers of column head addresses
14 
15  ///////////////////////////////////////////////
16  ///////////////// constructors ////////////////
17  ///////////////////////////////////////////////
18  inline _zhematrix();
19  inline _zhematrix(const _zhematrix&);
20  inline ~_zhematrix(); //destructor
21 
22  ///////////////////////////////////////////////
23  ////////////////// functions //////////////////
24  ///////////////////////////////////////////////
25  //////// cast ////////
26  inline _zgematrix to_zgematrix() const;
27 
28  //////// io ////////
29  inline zhecomplex operator()(const CPPL_INT&, const CPPL_INT&) const;
30  inline friend std::ostream& operator<<(std::ostream&, const zhematrix&);
31  inline void write(const char*) const;
32 
33  //////// misc ////////
34  inline void nullify() const;
35  inline void destroy() const;
36  inline void complete() const;
37 
38  //////// calc ////////
39  inline friend _zhematrix t(const _zhematrix&);
40  inline friend _zgematrix i(const _zhematrix&);
41 
42  ///////////////////////////////////////////////
43  ///////////// numerical operators /////////////
44  ///////////////////////////////////////////////
45  //////// unary ////////
46  inline friend const _zhematrix& operator+(const _zhematrix&);
47  inline friend _zhematrix operator-(const _zhematrix&);
48 
49  //////// + ////////
50  inline friend _zgematrix operator+(const _zhematrix&, const zgematrix&);
51  inline friend _zgematrix operator+(const _zhematrix&, const _zgematrix&);
52  inline friend _zhematrix operator+(const _zhematrix&, const zhematrix&);
53  inline friend _zhematrix operator+(const _zhematrix&, const _zhematrix&);
54  inline friend _zgematrix operator+(const _zhematrix&, const zgbmatrix&);
55  inline friend _zgematrix operator+(const _zhematrix&, const _zgbmatrix&);
56  inline friend _zgematrix operator+(const _zhematrix&, const zgsmatrix&);
57  inline friend _zgematrix operator+(const _zhematrix&, const _zgsmatrix&);
58  inline friend _zhematrix operator+(const _zhematrix&, const zhsmatrix&);
59  inline friend _zhematrix operator+(const _zhematrix&, const _zhsmatrix&);
60 
61  //////// - ////////
62  inline friend _zgematrix operator-(const _zhematrix&, const zgematrix&);
63  inline friend _zgematrix operator-(const _zhematrix&, const _zgematrix&);
64  inline friend _zhematrix operator-(const _zhematrix&, const zhematrix&);
65  inline friend _zhematrix operator-(const _zhematrix&, const _zhematrix&);
66  inline friend _zgematrix operator-(const _zhematrix&, const zgbmatrix&);
67  inline friend _zgematrix operator-(const _zhematrix&, const _zgbmatrix&);
68  inline friend _zgematrix operator-(const _zhematrix&, const zgsmatrix&);
69  inline friend _zgematrix operator-(const _zhematrix&, const _zgsmatrix&);
70  inline friend _zhematrix operator-(const _zhematrix&, const zhsmatrix&);
71  inline friend _zhematrix operator-(const _zhematrix&, const _zhsmatrix&);
72 
73  //////// * ////////
74  inline friend _zcovector operator*(const _zhematrix&, const zcovector&);
75  inline friend _zcovector operator*(const _zhematrix&, const _zcovector&);
76  inline friend _zgematrix operator*(const _zhematrix&, const zgematrix&);
77  inline friend _zgematrix operator*(const _zhematrix&, const _zgematrix&);
78  inline friend _zgematrix operator*(const _zhematrix&, const zhematrix&);
79  inline friend _zgematrix operator*(const _zhematrix&, const _zhematrix&);
80  inline friend _zgematrix operator*(const _zhematrix&, const zgbmatrix&);
81  inline friend _zgematrix operator*(const _zhematrix&, const _zgbmatrix&);
82  inline friend _zgematrix operator*(const _zhematrix&, const zgsmatrix&);
83  inline friend _zgematrix operator*(const _zhematrix&, const _zgsmatrix&);
84  inline friend _zgematrix operator*(const _zhematrix&, const zhsmatrix&);
85  inline friend _zgematrix operator*(const _zhematrix&, const _zhsmatrix&);
86  inline friend _zhematrix operator*(const _zhematrix&, const double&);
87  inline friend _zgematrix operator*(const _zhematrix&, const comple&);
88 
89  //////// / ////////
90  inline friend _zhematrix operator/(const _zhematrix&, const double&);
91  inline friend _zgematrix operator/(const _zhematrix&, const comple&);
92 
93  //////// double, complex ////////
94  inline friend _zhematrix operator*(const double&, const _zhematrix&);
95  inline friend _zgematrix operator*(const comple&, const _zhematrix&);
96 };
friend _zcovector operator*(const _zhematrix &, const zcovector &)
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
Complex Double-precision General Sparse Matrix Class.
Definition: zgsmatrix.hpp:3
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
friend const _zhematrix & operator+(const _zhematrix &)
friend _zhematrix operator-(const _zhematrix &)
zhecomplex operator()(const CPPL_INT &, const CPPL_INT &) const
(DO NOT USE) Smart-temporary Real Double-precision General Sparse Matrix Class
Definition: _zgsmatrix.hpp:3
void nullify() const
void write(const char *) const
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
void complete() const
(DO NOT USE) Complex-double Class for Hermitian matrices
Definition: zhecomplex.hpp:3
Complex Double-precision Hermitian Sparse Matrix Class.
Definition: zhsmatrix.hpp:3
friend _zhematrix t(const _zhematrix &)
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
comple * array
1D array to store matrix data
Definition: _zhematrix.hpp:12
void destroy() const
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3
friend std::ostream & operator<<(std::ostream &, const zhematrix &)
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_zgematrix to_zgematrix() const
comple ** darray
array of pointers of column head addresses
Definition: _zhematrix.hpp:13
Complex Double-precision Column Vector Class.
Definition: zcovector.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Column Vector Class
Definition: _zcovector.hpp:3
friend _zhematrix operator/(const _zhematrix &, const double &)
CPPL_INT const & m
matrix row and size
Definition: _zhematrix.hpp:10
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Sparse Matrix Class ...
Definition: _zhsmatrix.hpp:3
friend _zgematrix i(const _zhematrix &)