Changeset 1028 for trunk/test


Ignore:
Timestamp:
Feb 3, 2008, 2:53:29 AM (14 years ago)
Author:
Peter
Message:

documentation for VectorConstView? and changing name of view functions in matrix

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1027 r1028  
    5555  ///////////////////////////////////////////////////////
    5656  /* const conversion doesn't work for new vector structure
     57     see ticket 303
    5758  utility::vector::const_iterator ci = vec.begin();
    5859  ci = begin;
  • trunk/test/matrix_test.cc

    r1015 r1028  
    3737
    3838  inline theplu::yat::utility::VectorView
    39   row(const size_t& i) { return m_.row_vec(i); }
     39  row(const size_t& i) { return m_.row_view(i); }
    4040
    4141  inline const theplu::yat::utility::matrix& matrix(void) const { return m_; }
     
    280280    for (size_t j=0; j<m5.columns(); ++j)
    281281      m5_sum3+=m5(i,j);
    282   utility::VectorView v5subcolumn = m5.column_vec(0);
     282  utility::VectorView v5subcolumn = m5.column_view(0);
    283283  double v5subcolumn_sum=0;
    284284  for (size_t i=0; i<v5subcolumn.size(); ++i) {
  • trunk/test/score_test.cc

    r1015 r1028  
    109109  utility::vector weight(target2.size(),1);
    110110  for (size_t i=0; i<data.rows(); i++){
    111     utility::VectorView vec = data.row_vec(i);
     111    utility::VectorView vec = data.row_view(i);
    112112    area = auc.score(target2, vec, weight);
    113113    if (area<correct_area(i)-tol || area>correct_area(i)+tol){
Note: See TracChangeset for help on using the changeset viewer.