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