GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
qrp.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1994-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_qrp_h)
27#define octave_qrp_h 1
28
29#include "octave-config.h"
30
31#include "PermMatrix.h"
32#include "qr.h"
33
34namespace octave
35{
36 namespace math
37 {
38 template <typename T>
39 class
40 qrp : public qr<T>
41 {
42 public:
43
44 typedef typename T::real_row_vector_type RV_T;
45
46 typedef typename qr<T>::type type;
47
48 qrp (void) : qr<T> (), m_p () { }
49
51
52 qrp (const qrp& a) : qr<T> (a), m_p (a.m_p) { }
53
54 qrp& operator = (const qrp& a)
55 {
56 if (this != &a)
57 {
59 m_p = a.m_p;
60 }
61
62 return *this;
63 }
64
65 ~qrp (void) = default;
66
67 OCTAVE_API void init (const T&, type = qr<T>::std);
68
69 PermMatrix P (void) const { return m_p; }
70
71 OCTAVE_API RV_T Pvec (void) const;
72
73 private:
74
76 };
77 }
78}
79
80#endif
qr & operator=(const qr &a)
Definition: qr.h:66
T::row_vector_type RV_T
Definition: qr.h:44
qr< T >::type type
Definition: qrp.h:46
PermMatrix P(void) const
Definition: qrp.h:69
OCTAVE_API qrp(const T &, type=qr< T >::std)
OCTAVE_API void init(const T &, type=qr< T >::std)
qrp(void)
Definition: qrp.h:48
T::real_row_vector_type RV_T
Definition: qrp.h:44
OCTAVE_API RV_T Pvec(void) const
PermMatrix m_p
Definition: qrp.h:75
~qrp(void)=default
qrp(const qrp &a)
Definition: qrp.h:52
#define OCTAVE_API
Definition: main.in.cc:55