Ignore:
Timestamp:
Mar 3, 2006, 10:19:29 PM (17 years ago)
Author:
Peter
Message:

fixed problem with ConsensusInputranker? - Now all tests do pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/gslapi/matrix.h

    r535 r536  
    336336    ///
    337337    inline double& operator()(size_t row,size_t column)
    338     { return (*gsl_matrix_ptr(m_,row,column)); }
     338    {
     339      assert(row<rows());
     340      assert(column<columns());
     341      return (*gsl_matrix_ptr(m_,row,column));
     342    }
    339343
    340344    ///
     
    343347    ///
    344348    inline const double& operator()(size_t row,size_t column) const
    345     { return (*gsl_matrix_const_ptr(m_,row,column)); }
     349    {       
     350      assert(row<rows());
     351      assert(column<columns());
     352      return (*gsl_matrix_const_ptr(m_,row,column));
     353    }
    346354
    347355    ///
Note: See TracChangeset for help on using the changeset viewer.