Revision 5, 0.9 kB
(checked in by smidl, 17 years ago)
|
RV
|
Rev | Line | |
---|
[2] | 1 | /*! |
---|
| 2 | * \file |
---|
| 3 | * \brief Matrices in decomposed forms (LDL', LU, UDU', etc). |
---|
| 4 | * \author Vaclav Smidl. |
---|
| 5 | * |
---|
| 6 | * ----------------------------------- |
---|
| 7 | * BDM++ - C++ library for Bayesian Decision Making under Uncertainty |
---|
| 8 | * |
---|
| 9 | * Using IT++ for numerical operations |
---|
| 10 | * ----------------------------------- |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | #include <itpp/itbase.h> |
---|
| 14 | |
---|
| 15 | using namespace itpp; |
---|
| 16 | |
---|
| 17 | class LD |
---|
| 18 | { |
---|
[5] | 19 | public: |
---|
[2] | 20 | |
---|
[5] | 21 | /** |
---|
| 22 | * Perfroms a dyadic update $V = V + w v v'$ |
---|
| 23 | * @param v Vector forming the dyad to be added |
---|
| 24 | * @param w weight of the updating dysad |
---|
| 25 | */ |
---|
| 26 | void ldupdt ( vec v, double w = 1.0 ); |
---|
[2] | 27 | |
---|
[5] | 28 | //! Construct by copy of L and D. |
---|
| 29 | LD ( mat L, vec D ); |
---|
| 30 | //! Construct by decomposition of full matrix V. |
---|
| 31 | LD ( mat V ); |
---|
[2] | 32 | |
---|
[5] | 33 | protected: |
---|
| 34 | vec D; |
---|
| 35 | mat L; |
---|
[2] | 36 | |
---|
| 37 | }; |
---|
| 38 | |
---|
[5] | 39 | LD::LD ( const mat exL, const vec exD ) |
---|
| 40 | { |
---|
| 41 | D = exD; |
---|
| 42 | L = exL; |
---|
[2] | 43 | } |
---|
| 44 | |
---|
[5] | 45 | LD::LD ( const mat V ) |
---|
| 46 | { |
---|
| 47 | ; //not implemneted yet |
---|
[2] | 48 | } |
---|
| 49 | |
---|
[5] | 50 | void LD::ldupdt ( vec v, double w ) |
---|
| 51 | { |
---|
| 52 | printf ( "not implemented" ); //TODO: VS |
---|
[2] | 53 | } |
---|