GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmplxSCHUR.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1994-2015 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_CmplxSCHUR_h)
24 #define octave_CmplxSCHUR_h 1
25 
26 #include <iosfwd>
27 #include <string>
28 
29 #include "CMatrix.h"
30 #include "dbleSCHUR.h"
31 
32 class
33 OCTAVE_API
35 {
36 public:
37 
38  ComplexSCHUR (void) : schur_mat (), unitary_mat (), selector (0) { }
39 
40  ComplexSCHUR (const ComplexMatrix& a, const std::string& ord,
41  bool calc_unitary = true)
42  : schur_mat (), unitary_mat (), selector (0)
43  {
44  init (a, ord, calc_unitary);
45  }
46 
47  ComplexSCHUR (const ComplexMatrix& a, const std::string& ord,
48  octave_idx_type& info,
49  bool calc_unitary = true)
50  : schur_mat (), unitary_mat (), selector (0)
51  {
52  info = init (a, ord, calc_unitary);
53  }
54 
56  : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0)
57  { }
58 
59  ComplexSCHUR (const ComplexMatrix& s, const ComplexMatrix& u);
60 
61  ComplexSCHUR (const SCHUR& s);
62 
63  ComplexSCHUR& operator = (const ComplexSCHUR& a)
64  {
65  if (this != &a)
66  {
67  schur_mat = a.schur_mat;
68  unitary_mat = a.unitary_mat;
69  }
70  return *this;
71  }
72 
73  ~ComplexSCHUR (void) { }
74 
75  ComplexMatrix schur_matrix (void) const { return schur_mat; }
76 
77  ComplexMatrix unitary_matrix (void) const { return unitary_mat; }
78 
79  friend std::ostream& operator << (std::ostream& os, const ComplexSCHUR& a);
80 
81  typedef octave_idx_type (*select_function) (const Complex&);
82 
83 private:
84 
87 
88  select_function selector;
89 
90  octave_idx_type init (const ComplexMatrix& a, const std::string& ord,
91  bool calc_unitary);
92 };
93 
94 #endif
ComplexMatrix schur_mat
Definition: CmplxSCHUR.h:85
ComplexMatrix schur_matrix(void) const
Definition: CmplxSCHUR.h:75
select_function selector
Definition: CmplxSCHUR.h:88
ComplexSCHUR(void)
Definition: CmplxSCHUR.h:38
ComplexMatrix unitary_matrix(void) const
Definition: CmplxSCHUR.h:77
ComplexMatrix unitary_mat
Definition: CmplxSCHUR.h:86
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
ComplexSCHUR(const ComplexMatrix &a, const std::string &ord, bool calc_unitary=true)
Definition: CmplxSCHUR.h:40
ComplexSCHUR(const ComplexSCHUR &a)
Definition: CmplxSCHUR.h:55
~ComplexSCHUR(void)
Definition: CmplxSCHUR.h:73
std::complex< double > Complex
Definition: oct-cmplx.h:29
ComplexSCHUR(const ComplexMatrix &a, const std::string &ord, octave_idx_type &info, bool calc_unitary=true)
Definition: CmplxSCHUR.h:47