GNU Octave 10.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-2025 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
35
37
38template <typename T>
39class qrp : public qr<T>
40{
41public:
42
43 typedef typename T::real_row_vector_type RV_T;
44
45 typedef typename qr<T>::type type;
46
47 qrp () : qr<T> (), m_p () { }
48
50
51 qrp (const qrp& a) : qr<T> (a), m_p (a.m_p) { }
52
53 qrp& operator = (const qrp& a)
54 {
55 if (this != &a)
56 {
58 m_p = a.m_p;
59 }
60
61 return *this;
62 }
63
64 ~qrp () = default;
65
66 OCTAVE_API void init (const T&, type = qr<T>::std);
67
68 PermMatrix P () const { return m_p; }
69
71
72private:
73
74 PermMatrix m_p;
75};
76
77OCTAVE_END_NAMESPACE(math)
78OCTAVE_END_NAMESPACE(octave)
79
80#endif
Definition qr.h:39
type
Definition qr.h:47
qr & operator=(const qr &a)
Definition qr.h:65
Definition qrp.h:40
PermMatrix P() const
Definition qrp.h:68
void init(const T &, type=qr< T >::std)
~qrp()=default
T::real_row_vector_type RV_T
Definition qrp.h:43
qrp & operator=(const qrp &a)
Definition qrp.h:53
RV_T Pvec() const
qrp(const qrp &a)
Definition qrp.h:51
qr< T >::type type
Definition qrp.h:45
qrp()
Definition qrp.h:47
qrp(const T &, type=qr< T >::std)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define OCTAVE_API
Definition main.in.cc:55