Changeset 294 for bdm/math/chmat.h

Show
Ignore:
Timestamp:
03/12/09 22:18:43 (15 years ago)
Author:
smidl
Message:

tr2245

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/chmat.h

    r270 r294  
    6666        //! Access function 
    6767        mat & _Ch() {return Ch;} 
     68        //! Access function 
     69        const mat & _Ch() const {return Ch;} 
    6870        //! Access functions 
    6971        void setD ( const vec &nD ) {Ch=diag ( sqrt(nD) );} 
     72        //! Access functions 
     73        void setCh ( const vec &chQ ) { 
     74                it_assert_debug(chQ.length()==dim*dim,"");  
     75                copy_vector(dim*dim, chQ._data(), Ch._data());  
     76        } 
    7077        //! Access functions 
    7178        void setD ( const vec &nD, int i ) {for ( int j=i;j<nD.length();j++ ) {Ch( j,j ) =sqrt(nD ( j-i ));}} //Fixme can be more general