Changeset 180 for bdm/math

Show
Ignore:
Timestamp:
10/15/08 19:08:06 (16 years ago)
Author:
smidl
Message:

Modifications of BDM to reflect changes in basics

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/libDC.h

    r168 r180  
    1515 
    1616#include <itpp/itbase.h> 
     17#include "../itpp_ext.h" 
    1718 
    1819using namespace itpp; 
     
    172173}; 
    173174 
    174 /*! \brief Matrix stored in LD form, (typically known as UD)  
     175/*! \brief Matrix stored in LD form, (commonly known as UD)  
    175176 
    176177Matrix is decomposed as follows: \f[M = L'DL\f] where only \f$L\f$ and \f$D\f$ matrices are stored. 
     
    180181{ 
    181182        public: 
    182  
    183183                //! Construct by copy of L and D. 
    184184                ldmat ( const mat &L, const vec &D ); 
    185185                //! Construct by decomposition of full matrix V. 
    186186                ldmat (const mat &V ); 
     187                //! Construct by restructuring of V0 accordint to permutation vector perm. 
     188                ldmat (const ldmat &V0, const ivec &perm):sqmat(V0.rows()){     ldform(V0.L.get_cols(perm), V0.D);}; 
    187189                //! Construct diagonal matrix with diagonal D0 
    188190                ldmat ( vec D0 ); 
     
    191193                //! Default initialization with proper size 
    192194                ldmat(const int dim0); 
    193  
     195                 
    194196                //! Destructor for future use; 
    195197                virtual ~ldmat(){}; 
     
    206208                double qform (const vec &v ) const; 
    207209                double invqform (const vec &v ) const; 
    208 //      sqmat& operator -= ( const sqmat & ld2 ); 
    209210                void clear(); 
    210211                int cols() const; 
     
    212213                vec sqrt_mult ( const vec &v ) const; 
    213214 
     215                 
    214216                /*! \brief Matrix inversion preserving the chosen form. 
    215217                @param Inv a space where the inverse is stored. 
     
    267269 
    268270}; 
    269  
    270271 
    271272//////// Operations: