Mercurial > octave-nkf
comparison liboctave/numeric/floatCHOL.h @ 20497:5ce959c55cc0
Propagate 'lower' in chol(a, 'lower') to underlying library function.
* chol.cc (chol): Send 'L' parameter correctly when chol is called with 'lower'.
* floatCHOL.cc (init): Propagate 'lower' to underlying library function.
* floatCHOL.h: Modify the prototype of methods.
* fMatrix.cc (inverse): Invoke chol with additional parameter.
* dbleCHOL.cc (init): Propagate 'lower' to underlying library function.
* dbleCHOL.h: Modify the prototype of methods.
* dMatrix.cc (inverse): Invoke chol with additional parameter.
* CmplxCHOL.cc (init): Propagate 'lower' to underlying library function.
* CmplxCHOL.h: Modify the prototype of methods.
* CMatrix.cc (inverse): Invoke chol with additional parameter.
author | PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com> |
---|---|
date | Sun, 24 Aug 2014 19:35:06 +0530 |
parents | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
20496:0fe7133da8ce | 20497:5ce959c55cc0 |
---|---|
35 { | 35 { |
36 public: | 36 public: |
37 | 37 |
38 FloatCHOL (void) : chol_mat (), xrcond (0) { } | 38 FloatCHOL (void) : chol_mat (), xrcond (0) { } |
39 | 39 |
40 FloatCHOL (const FloatMatrix& a, bool calc_cond = false) | 40 FloatCHOL (const FloatMatrix& a, bool upper = true, bool calc_cond = false) |
41 : chol_mat (), xrcond (0) | 41 : chol_mat (), xrcond (0) |
42 { | 42 { |
43 init (a, calc_cond); | 43 init (a, upper, calc_cond); |
44 } | 44 } |
45 | 45 |
46 FloatCHOL (const FloatMatrix& a, octave_idx_type& info, | 46 FloatCHOL (const FloatMatrix& a, octave_idx_type& info, bool upper = true, |
47 bool calc_cond = false) | 47 bool calc_cond = false) |
48 : chol_mat (), xrcond (0) | 48 : chol_mat (), xrcond (0) |
49 { | 49 { |
50 info = init (a, calc_cond); | 50 info = init (a, upper, calc_cond); |
51 } | 51 } |
52 | 52 |
53 FloatCHOL (const FloatCHOL& a) : chol_mat (a.chol_mat), xrcond (a.xrcond) { } | 53 FloatCHOL (const FloatCHOL& a) : chol_mat (a.chol_mat), xrcond (a.xrcond) { } |
54 | 54 |
55 FloatCHOL& operator = (const FloatCHOL& a) | 55 FloatCHOL& operator = (const FloatCHOL& a) |
88 | 88 |
89 FloatMatrix chol_mat; | 89 FloatMatrix chol_mat; |
90 | 90 |
91 float xrcond; | 91 float xrcond; |
92 | 92 |
93 octave_idx_type init (const FloatMatrix& a, bool calc_cond); | 93 bool is_upper; |
94 | |
95 octave_idx_type init (const FloatMatrix& a, bool upper, bool calc_cond); | |
94 }; | 96 }; |
95 | 97 |
96 FloatMatrix OCTAVE_API chol2inv (const FloatMatrix& r); | 98 FloatMatrix OCTAVE_API chol2inv (const FloatMatrix& r); |
97 | 99 |
98 #endif | 100 #endif |