GNU Octave
3.8.0
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
base-qr.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2009-2013 Jaroslav Hajek
4
5
This file is part of Octave.
6
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
20
21
*/
22
23
#if !defined (octave_base_qr_h)
24
#define octave_base_qr_h 1
25
26
#include "
MArray.h
"
27
#include "
dColVector.h
"
28
#include "
PermMatrix.h
"
29
30
enum
qr_type_t
31
{
32
qr_type_std
,
33
qr_type_raw
,
34
qr_type_economy
35
};
36
37
template
<
class
qr_type>
38
class
39
base_qr
40
{
41
public
:
42
43
typedef
typename
qr_type::element_type
qr_elt_type
;
44
45
base_qr
(
void
) : q (), r () { }
46
47
base_qr
(
const
qr_type& q,
const
qr_type& r);
48
49
base_qr
(
const
base_qr
& a) : q (a.q), r (a.r) { }
50
51
base_qr
& operator = (
const
base_qr
& a)
52
{
53
if
(
this
!= &a)
54
{
55
q = a.
q
;
56
r = a.
r
;
57
}
58
return
*
this
;
59
}
60
61
virtual
~base_qr
(
void
) { }
62
63
qr_type
Q
(
void
)
const
{
return
q; }
64
65
qr_type
R
(
void
)
const
{
return
r; }
66
67
qr_type_t
get_type (
void
)
const
;
68
69
bool
regular (
void
)
const
;
70
71
protected
:
72
73
qr_type
q
;
74
qr_type
r
;
75
};
76
77
#ifndef HAVE_QRUPDATE
78
void
warn_qrupdate_once (
void
);
79
#endif
80
81
#endif
Generated on Mon Dec 30 2013 03:04:48 for GNU Octave by
1.8.1.2