Changeset 168 for bdm/math

Show
Ignore:
Timestamp:
09/18/08 19:54:09 (16 years ago)
Author:
smidl
Message:

Work on mixtures of EF, small changes

Location:
bdm/math
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/chmat.cpp

    r108 r168  
    1717        Ch = R ( 0, Ch.rows()-1, 0, Ch.cols()-1 ); 
    1818}; 
    19 mat chmat::to_mat() {mat F=Ch.T() *Ch;return F;}; 
     19mat chmat::to_mat() const {mat F=Ch.T() *Ch;return F;}; 
    2020void chmat::mult_sym ( const mat &C ) { 
    2121        it_error ( "not implemented" ); 
  • bdm/math/chmat.h

    r108 r168  
    3232 
    3333        void opupdt ( const vec &v, double w ); 
    34         mat to_mat(); 
     34        mat to_mat() const; 
    3535        void mult_sym ( const mat &C ); 
    3636        void mult_sym ( const mat &C , chmat &U ) const; 
  • bdm/math/libDC.cpp

    r162 r168  
    77 
    88void fsqmat::opupdt ( const vec &v, double w ) {M+=outer_product ( v,v*w );}; 
    9 mat fsqmat::to_mat() {return M;}; 
     9mat fsqmat::to_mat() const {return M;}; 
    1010void fsqmat::mult_sym ( const mat &C) {M=C *M*C.T();}; 
    1111void fsqmat::mult_sym_t ( const mat &C) {M=C.T() *M*C;}; 
     
    7878} 
    7979 
    80 mat ldmat::to_mat() { 
     80mat ldmat::to_mat() const { 
    8181        int dim = D.length(); 
    8282        mat V( dim, dim ); 
  • bdm/math/libDC.h

    r98 r168  
    4444                */ 
    4545 
    46                 virtual mat to_mat() =0; 
     46                virtual mat to_mat() const =0; 
    4747 
    4848                /*! \brief Inplace symmetric multiplication by a SQUARE matrix \f$C\f$, i.e. \f$V = C*V*C'\f$ 
     
    115115        public: 
    116116                void opupdt ( const vec &v, double w ); 
    117                 mat to_mat() ; 
     117                mat to_mat() const; 
    118118                void mult_sym ( const mat &C); 
    119119                void mult_sym_t ( const mat &C); 
     
    198198 
    199199                void opupdt ( const vec &v, double w ); 
    200                 mat to_mat(); 
     200                mat to_mat() const; 
    201201                void mult_sym ( const mat &C); 
    202202                void mult_sym_t ( const mat &C);