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
SparseCmplxCHOL.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_SparseCmplxCHOL_h)
25
#define octave_SparseCmplxCHOL_h 1
26
27
#include "
sparse-base-chol.h
"
28
#include "
dSparse.h
"
29
#include "
CSparse.h
"
30
31
class
32
OCTAVE_API
33
SparseComplexCHOL
34
:
public
sparse_base_chol <SparseComplexMatrix, Complex, SparseMatrix>
35
{
36
public
:
37
38
SparseComplexCHOL
(
void
)
39
:
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
SparseMatrix
> () { }
40
41
SparseComplexCHOL
(
const
SparseComplexMatrix
& a,
bool
natural =
true
,
42
bool
force =
false
)
43
:
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
SparseMatrix
>
44
(a, natural, force) { }
45
46
SparseComplexCHOL
(
const
SparseComplexMatrix
& a,
octave_idx_type
& info,
47
bool
natural =
true
,
bool
force =
false
)
48
:
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
SparseMatrix
>
49
(a, info, natural, force) { }
50
51
SparseComplexCHOL
(
const
SparseComplexCHOL
& a)
52
:
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
SparseMatrix
> (a) { }
53
54
~SparseComplexCHOL
(
void
) { }
55
56
SparseComplexCHOL
& operator = (
const
SparseComplexCHOL
& a)
57
{
58
if
(
this
!= &a)
59
sparse_base_chol <SparseComplexMatrix, Complex, SparseMatrix>
::
60
operator = (a);
61
62
return
*
this
;
63
}
64
65
SparseComplexMatrix
chol_matrix
(
void
)
const
{
return
R (); }
66
67
SparseComplexMatrix
L (
void
)
const
68
{
69
return
sparse_base_chol<SparseComplexMatrix, Complex, SparseMatrix>:: L
();
70
}
71
72
SparseComplexMatrix
R (
void
)
const
73
{
74
return
sparse_base_chol<SparseComplexMatrix, Complex, SparseMatrix>:: R
();
75
}
76
77
octave_idx_type
P (
void
)
const
78
{
79
return
sparse_base_chol<SparseComplexMatrix, Complex, SparseMatrix>:: P
();
80
}
81
82
ColumnVector
perm (
void
)
const
83
{
84
return
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
85
SparseMatrix
>:: perm ();
86
}
87
88
SparseMatrix
Q
(
void
)
const
89
{
90
return
sparse_base_chol<SparseComplexMatrix, Complex, SparseMatrix>:: Q
();
91
}
92
93
double
rcond (
void
)
const
94
{
95
return
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
96
SparseMatrix
>:: rcond ();
97
}
98
99
// Compute the inverse of a matrix using the Cholesky factorization.
100
SparseComplexMatrix
inverse (
void
)
const
101
{
102
return
sparse_base_chol
<
SparseComplexMatrix
,
Complex
,
103
SparseMatrix
>:: inverse ();
104
}
105
};
106
107
SparseComplexMatrix
OCTAVE_API
chol2inv
(
const
SparseComplexMatrix
& r);
108
109
#endif
Generated on Mon Dec 30 2013 03:04:50 for GNU Octave by
1.8.1.2