Changeset 433

Show
Ignore:
Timestamp:
07/27/09 22:17:46 (15 years ago)
Author:
smidl
Message:

unification of inv in sqmat

Location:
library/bdm/math
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/math/square_mat.cpp

    r384 r433  
    1212void fsqmat::mult_sym ( const mat &C, fsqmat &U) const { U.M = ( C *(M*C.T()) );}; 
    1313void fsqmat::mult_sym_t ( const mat &C, fsqmat &U) const { U.M = ( C.T() *(M*C) );}; 
    14 void fsqmat::inv ( fsqmat &Inv ) {mat IM = itpp::inv ( M ); Inv=IM;}; 
     14void fsqmat::inv ( fsqmat &Inv ) const {mat IM = itpp::inv ( M ); Inv=IM;}; 
    1515void fsqmat::clear() {M.clear();}; 
    1616fsqmat::fsqmat ( const mat &M0 ) : sqmat(M0.cols()) 
  • library/bdm/math/square_mat.h

    r427 r433  
    152152 
    153153                */ 
    154                 virtual void inv ( fsqmat &Inv ); 
     154                void inv ( fsqmat &Inv ) const; 
    155155 
    156156                double logdet() const {return log ( det ( M ) );}; 
     
    224224                @param Inv a space where the inverse is stored. 
    225225                */ 
    226                 virtual void inv ( ldmat &Inv ) const; 
     226                void inv ( ldmat &Inv ) const; 
    227227 
    228228                /*! \brief Symmetric multiplication of \f$U\f$ by a general matrix \f$C\f$, result of which is stored in the current class.