GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
35 {
36 public:
37 
40 
41  SparseComplexCHOL (const SparseComplexMatrix& a, bool natural = true,
42  bool force = false)
44  (a, natural, force) { }
45 
47  bool natural = true, bool force = false)
49  (a, info, natural, force) { }
50 
53 
54  ~SparseComplexCHOL (void) { }
55 
56  SparseComplexCHOL& operator = (const SparseComplexCHOL& a)
57  {
58  if (this != &a)
60  operator = (a);
61 
62  return *this;
63  }
64 
65  SparseComplexMatrix chol_matrix (void) const { return R (); }
66 
67  SparseComplexMatrix L (void) const
68  {
70  }
71 
72  SparseComplexMatrix R (void) const
73  {
75  }
76 
77  octave_idx_type P (void) const
78  {
80  }
81 
82  ColumnVector perm (void) const
83  {
85  SparseMatrix>:: perm ();
86  }
87 
88  SparseMatrix Q (void) const
89  {
91  }
92 
93  double rcond (void) const
94  {
96  SparseMatrix>:: rcond ();
97  }
98 
99  // Compute the inverse of a matrix using the Cholesky factorization.
100  SparseComplexMatrix inverse (void) const
101  {
103  SparseMatrix>:: inverse ();
104  }
105 };
106 
107 SparseComplexMatrix OCTAVE_API chol2inv (const SparseComplexMatrix& r);
108 
109 #endif