GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
qrp.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1994-2026 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
36
37template <typename T>
38class qrp : public qr<T>
39{
40public:
41
42 typedef typename T::real_row_vector_type RV_T;
43
44 typedef typename qr<T>::type type;
45
46 qrp () : qr<T> (), m_p () { }
47
49
50 qrp (const qrp& a) : qr<T> (a), m_p (a.m_p) { }
51
52 qrp& operator = (const qrp& a)
53 {
54 if (this != &a)
55 {
57 m_p = a.m_p;
58 }
59
60 return *this;
61 }
62
63 ~qrp () = default;
64
65 OCTAVE_API void init (const T&, type = qr<T>::std);
66
67 PermMatrix P () const { return m_p; }
68
70
71private:
72
73 PermMatrix m_p;
74};
75
76OCTAVE_END_NAMESPACE(math)
77OCTAVE_END_NAMESPACE(octave)
78
79#endif
Definition qr.h:38
type
Definition qr.h:46
qr & operator=(const qr &a)
Definition qr.h:64
Definition qrp.h:39
PermMatrix P() const
Definition qrp.h:67
void init(const T &, type=qr< T >::std)
~qrp()=default
T::real_row_vector_type RV_T
Definition qrp.h:42
qrp & operator=(const qrp &a)
Definition qrp.h:52
RV_T Pvec() const
qrp(const qrp &a)
Definition qrp.h:50
qr< T >::type type
Definition qrp.h:44
qrp()
Definition qrp.h:46
qrp(const T &, type=qr< T >::std)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define OCTAVE_API
Definition main.in.cc:55