GNU Octave
4.0.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-2015 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
base_qr::base_qr
base_qr(void)
Definition:
base-qr.h:45
base_qr::qr_elt_type
qr_type::element_type qr_elt_type
Definition:
base-qr.h:43
qr_type_raw
Definition:
base-qr.h:33
base_qr::Q
qr_type Q(void) const
Definition:
base-qr.h:63
MArray.h
qr_type_std
Definition:
base-qr.h:32
base_qr::r
qr_type r
Definition:
base-qr.h:74
qr_type_economy
Definition:
base-qr.h:34
base_qr::q
qr_type q
Definition:
base-qr.h:73
qr_type_t
qr_type_t
Definition:
base-qr.h:30
base_qr::base_qr
base_qr(const base_qr &a)
Definition:
base-qr.h:49
base_qr::R
qr_type R(void) const
Definition:
base-qr.h:65
PermMatrix.h
base_qr
Definition:
base-qr.h:38
base_qr::~base_qr
virtual ~base_qr(void)
Definition:
base-qr.h:61
dColVector.h
Generated on Thu Jun 4 2015 23:30:24 for GNU Octave by
1.8.8