Legend:
- Unmodified
- Added
- Removed
-
libDC.cpp
r2 r5 17 17 class LD 18 18 { 19 public:19 public: 20 20 21 22 23 24 25 26 void ldupdt (vec v, double w = 1.0 );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 27 28 29 LD(mat L, vec D);30 31 LD(mat V);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 32 33 protected:34 35 33 protected: 34 vec D; 35 mat L; 36 36 37 37 }; 38 38 39 LD::LD(const mat exL, const vec exD) { 40 D = exD; 41 L = exL; 39 LD::LD ( const mat exL, const vec exD ) 40 { 41 D = exD; 42 L = exL; 42 43 } 43 44 44 LD::LD(const mat V) { 45 ; //not implemneted yet 45 LD::LD ( const mat V ) 46 { 47 ; //not implemneted yet 46 48 } 47 49 48 void LD::ldupdt(vec v, double w ) { 49 printf("not implemented"); //TODO: VS 50 void LD::ldupdt ( vec v, double w ) 51 { 52 printf ( "not implemented" ); //TODO: VS 50 53 }