GNU Octave  4.2.1
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
qrp.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1994-2017 John W. Eaton
4 Copyright (C) 2009 VZLU Prague
5 
6 This file is part of Octave.
7 
8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_qrp_h)
25 #define octave_qrp_h 1
26 
27 #include "octave-config.h"
28 
29 #include "PermMatrix.h"
30 #include "qr.h"
31 
32 namespace octave
33 {
34  namespace math
35  {
36  template <typename T>
37  class
38  qrp : public qr<T>
39  {
40  public:
41 
42  typedef typename T::real_row_vector_type RV_T;
43 
44  typedef typename qr<T>::type type;
45 
46  qrp (void) : qr<T> (), p () { }
47 
48  qrp (const T&, type = qr<T>::std);
49 
50  qrp (const qrp& a) : qr<T> (a), p (a.p) { }
51 
52  qrp& operator = (const qrp& a)
53  {
54  if (this != &a)
55  {
57  p = a.p;
58  }
59 
60  return *this;
61  }
62 
63  ~qrp (void) { }
64 
65  void init (const T&, type = qr<T>::std);
66 
67  PermMatrix P (void) const { return p; }
68 
69  RV_T Pvec (void) const;
70 
71  private:
72 
74  };
75  }
76 }
77 
78 #endif
Octave interface to the compression and uncompression libraries.
Definition: aepbalance.cc:47
qrp(void)
Definition: qrp.h:46
qr & operator=(const qr &a)
Definition: qr.h:65
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:398
PermMatrix p
Definition: qrp.h:73
qr< T >::type type
Definition: qrp.h:44
qrp(const qrp &a)
Definition: qrp.h:50
T::real_row_vector_type RV_T
Definition: qrp.h:42
PermMatrix P(void) const
Definition: qrp.h:67
p
Definition: lu.cc:138
~qrp(void)
Definition: qrp.h:63