Changeset 108 for bdm/math

Show
Ignore:
Timestamp:
05/12/08 17:56:55 (16 years ago)
Author:
smidl
Message:

Fixes for compilation on Win32 platform

Location:
bdm/math
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/chmat.cpp

    r76 r108  
    1717        Ch = R ( 0, Ch.rows()-1, 0, Ch.cols()-1 ); 
    1818}; 
    19 inline mat chmat::to_mat() {mat F=Ch.T() *Ch;return F;}; 
     19mat chmat::to_mat() {mat F=Ch.T() *Ch;return F;}; 
    2020void chmat::mult_sym ( const mat &C ) { 
    2121        it_error ( "not implemented" ); 
     
    3737}; 
    3838//TODO can be done more efficiently using BLAS, see triangular matrices 
    39 inline vec chmat::sqrt_mult ( const vec &v ) const {vec pom; pom = Ch*v; return pom;}; 
    40 inline double chmat::qform ( const vec &v ) const {vec pom; pom = Ch*v; return pom*pom;}; 
    41 inline double chmat::invqform ( const vec &v ) const { 
     39vec chmat::sqrt_mult ( const vec &v ) const {vec pom; pom = Ch*v; return pom;}; 
     40double chmat::qform ( const vec &v ) const {vec pom; pom = Ch*v; return pom*pom;}; 
     41double chmat::invqform ( const vec &v ) const { 
    4242        vec pom(v.length()); 
    4343        forward_substitution(Ch.T(),v,pom); 
    4444        return pom*pom; 
    4545}; 
    46 inline void chmat::clear() {Ch.clear();}; 
     46void chmat::clear() {Ch.clear();}; 
  • bdm/math/chmat.h

    r101 r108  
    3232 
    3333        void opupdt ( const vec &v, double w ); 
    34         inline mat to_mat(); 
     34        mat to_mat(); 
    3535        void mult_sym ( const mat &C ); 
    3636        void mult_sym ( const mat &C , chmat &U ) const; 
     
    3838        void mult_sym_t ( const mat &C, chmat &U ) const; 
    3939        double logdet() const; 
    40         inline vec sqrt_mult ( const vec &v ) const; 
    41         inline double qform ( const vec &v ) const; 
    42         inline double invqform ( const vec &v ) const; 
    43         inline void clear(); 
     40        vec sqrt_mult ( const vec &v ) const; 
     41        double qform ( const vec &v ) const; 
     42        double invqform ( const vec &v ) const; 
     43        void clear(); 
    4444        //! add another chmat \c A2 with weight \c w. 
    4545        void add ( const chmat &A2, double w=1.0 ) {};