root/libDC.cpp @ 6

Revision 5, 0.9 kB (checked in by smidl, 17 years ago)

RV

Line 
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
15using namespace itpp;
16
17class LD
18{
19        public:
20
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 );
27
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 );
32
33        protected:
34                vec D;
35                mat L;
36
37};
38
39LD::LD ( const mat exL, const vec exD )
40{
41        D = exD;
42        L = exL;
43}
44
45LD::LD ( const mat V )
46{
47        ; //not implemneted yet
48}
49
50void LD::ldupdt ( vec v, double w )
51{
52        printf ( "not implemented" ); //TODO: VS
53}
Note: See TracBrowser for help on using the browser.