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
dbleSCHUR.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_dbleSCHUR_h)
24 #define octave_dbleSCHUR_h 1
25 
26 #include <iosfwd>
27 #include <string>
28 
29 #include "dMatrix.h"
30 
31 class
32 OCTAVE_API
33 SCHUR
34 {
35 public:
36 
37  SCHUR (void) : schur_mat (), unitary_mat (), selector (0) { }
38 
39  SCHUR (const Matrix& a, const std::string& ord, bool calc_unitary = true)
40  : schur_mat (), unitary_mat (), selector (0)
41  {
42  init (a, ord, calc_unitary);
43  }
44 
45  SCHUR (const Matrix& a, const std::string& ord, int& info,
46  bool calc_unitary = true)
47  : schur_mat (), unitary_mat (), selector (0)
48  {
49  info = init (a, ord, calc_unitary);
50  }
51 
52  SCHUR (const SCHUR& a)
53  : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0)
54  { }
55 
56  SCHUR (const Matrix& s, const Matrix& u);
57 
58  SCHUR& operator = (const SCHUR& a)
59  {
60  if (this != &a)
61  {
62  schur_mat = a.schur_mat;
63  unitary_mat = a.unitary_mat;
64  }
65  return *this;
66  }
67 
68  ~SCHUR (void) { }
69 
70  Matrix schur_matrix (void) const { return schur_mat; }
71 
72  Matrix unitary_matrix (void) const { return unitary_mat; }
73 
74  friend std::ostream& operator << (std::ostream& os, const SCHUR& a);
75 
76  typedef octave_idx_type (*select_function) (const double&, const double&);
77 
78 private:
79 
82 
83  select_function selector;
84 
85  octave_idx_type init (const Matrix& a, const std::string& ord,
86  bool calc_unitary);
87 };
88 
89 #endif
SCHUR(void)
Definition: dbleSCHUR.h:37
SCHUR(const Matrix &a, const std::string &ord, int &info, bool calc_unitary=true)
Definition: dbleSCHUR.h:45
SCHUR(const SCHUR &a)
Definition: dbleSCHUR.h:52
select_function selector
Definition: dbleSCHUR.h:83
Matrix unitary_mat
Definition: dbleSCHUR.h:81
ColumnVector & operator=(const ColumnVector &a)
Definition: dColVector.h:53
SCHUR(const Matrix &a, const std::string &ord, bool calc_unitary=true)
Definition: dbleSCHUR.h:39
Definition: dMatrix.h:35
Matrix schur_mat
Definition: dbleSCHUR.h:80
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
Matrix unitary_matrix(void) const
Definition: dbleSCHUR.h:72
~SCHUR(void)
Definition: dbleSCHUR.h:68
Matrix schur_matrix(void) const
Definition: dbleSCHUR.h:70