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
SparsedbleCHOL.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2005-2013 David Bateman
4
Copyright (C) 1998-2005 Andy Adler
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_SparsedbleCHOL_h)
25
#define octave_SparsedbleCHOL_h 1
26
27
#include "
sparse-base-chol.h
"
28
#include "
dSparse.h
"
29
30
class
31
OCTAVE_API
32
SparseCHOL
:
public
sparse_base_chol <SparseMatrix, double, SparseMatrix>
33
{
34
public
:
35
36
SparseCHOL
(
void
) :
sparse_base_chol
<
SparseMatrix
,
double
,
SparseMatrix
> ()
37
{ }
38
39
SparseCHOL
(
const
SparseMatrix
& a,
bool
natural =
true
,
bool
force =
false
)
40
:
sparse_base_chol
<
SparseMatrix
,
double
,
SparseMatrix
> (a, natural, force)
41
{ }
42
43
SparseCHOL
(
const
SparseMatrix
& a,
octave_idx_type
& info,
44
bool
natural =
false
,
bool
force =
false
)
45
:
sparse_base_chol
<
SparseMatrix
,
double
,
SparseMatrix
> (a, info, natural,
46
force)
47
{ }
48
49
SparseCHOL
(
const
SparseCHOL
& a) :
50
sparse_base_chol
<
SparseMatrix
,
double
,
SparseMatrix
> (a) { }
51
52
~SparseCHOL
(
void
) { }
53
54
SparseCHOL
& operator = (
const
SparseCHOL
& a)
55
{
56
if
(
this
!= &a)
57
sparse_base_chol <SparseMatrix, double, SparseMatrix>
:: operator = (a);
58
59
return
*
this
;
60
}
61
62
SparseMatrix
chol_matrix
(
void
)
const
{
return
R (); }
63
64
SparseMatrix
L (
void
)
const
65
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: L
(); }
66
67
SparseMatrix
R (
void
)
const
68
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: R
(); }
69
70
octave_idx_type
P (
void
)
const
71
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: P
(); }
72
73
ColumnVector
perm (
void
)
const
74
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: perm
(); }
75
76
SparseMatrix
Q
(
void
)
const
77
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: Q
(); }
78
79
double
rcond (
void
)
const
80
{
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: rcond
(); }
81
82
// Compute the inverse of a matrix using the Cholesky factorization.
83
SparseMatrix
inverse (
void
)
const
84
{
85
return
sparse_base_chol<SparseMatrix, double, SparseMatrix>:: inverse
();
86
}
87
};
88
89
SparseMatrix
OCTAVE_API
chol2inv
(
const
SparseMatrix
& r);
90
91
#endif
Generated on Mon Dec 30 2013 03:04:50 for GNU Octave by
1.8.1.2