Show
Ignore:
Timestamp:
07/24/09 08:53:22 (15 years ago)
Author:
vbarta
Message:

deriving ldmat publically (like all other children of square_mat); more tests

Files:
1 modified

Legend:

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

    r384 r427  
    3131mat ltuinv( const mat &L ); 
    3232 
    33 /*! \brief Virtual class for representation of double symmetric matrices in square-root form. 
     33/*! \brief Abstract class for representation of double symmetric matrices in square-root form. 
    3434 
    3535All operations defined on this class should be optimized for the chosen decomposition. 
     
    9797                int cols() const {return dim;}; 
    9898 
    99                 //! Reimplementing common functions of mat: cols(). 
     99                //! Reimplementing common functions of mat: rows(). 
    100100                int rows() const {return dim;}; 
    101101 
     
    187187All inplace operations modifies only these and the need to compose and decompose the matrix is avoided. 
    188188*/ 
    189 class ldmat: sqmat 
     189class ldmat: public sqmat 
    190190{ 
    191191        public: 
     
    218218                double invqform (const vec &v ) const; 
    219219                void clear(); 
    220                 int cols() const; 
    221                 int rows() const; 
    222220                vec sqrt_mult ( const vec &v ) const; 
    223221 
     
    284282//!mapping of negative add operation to operators 
    285283inline ldmat& ldmat::operator -= ( const ldmat &ldA )  {this->add ( ldA,-1.0 );return *this;} 
    286 //!access function 
    287 inline int ldmat::cols() const {return dim;} 
    288 //!access function 
    289 inline int ldmat::rows() const {return dim;} 
    290284 
    291285/*! @} */