GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
liboctave
numeric
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
{
56
qr<T>::operator =
(a);
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
73
PermMatrix
p
;
74
};
75
}
76
}
77
78
#endif
octave
Octave interface to the compression and uncompression libraries.
Definition:
aepbalance.cc:47
octave::math::qrp::qrp
qrp(void)
Definition:
qrp.h:46
PermMatrix
Definition:
PermMatrix.h:34
octave::math::qrp
Definition:
qrp.h:37
octave::math::qr::operator=
qr & operator=(const qr &a)
Definition:
qr.h:65
octave::math::qr
Definition:
qr.h:37
a
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
octave::math::qrp::p
PermMatrix p
Definition:
qrp.h:73
octave::math::qrp::type
qr< T >::type type
Definition:
qrp.h:44
octave::math::qr::type
type
Definition:
qr.h:46
qr.h
octave::math::qrp::qrp
qrp(const qrp &a)
Definition:
qrp.h:50
octave::math::qrp::RV_T
T::real_row_vector_type RV_T
Definition:
qrp.h:42
octave::math::qrp::P
PermMatrix P(void) const
Definition:
qrp.h:67
PermMatrix.h
p
p
Definition:
lu.cc:138
octave::math::qrp::~qrp
~qrp(void)
Definition:
qrp.h:63
Generated on Wed May 10 2017 15:42:59 for GNU Octave by
1.8.8