Changeset 1690 for trunk/yat


Ignore:
Timestamp:
Dec 31, 2008, 3:08:51 PM (12 years ago)
Author:
Peter
Message:

create row and column iterator when that is return type - doesnt matter for now as iterator and its row and column siblings are typedef'ed to the same class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Matrix.cc

    r1682 r1690  
    172172  Matrix::column_iterator Matrix::begin_column(size_t i)
    173173  {
    174     return iterator(&(*this)(0,i), this->columns());
     174    return column_iterator(&(*this)(0,i), this->columns());
    175175  }
    176176
     
    178178  Matrix::const_column_iterator Matrix::begin_column(size_t i) const
    179179  {
    180     return const_iterator(&(*this)(0,i), this->columns());
     180    return const_column_iterator(&(*this)(0,i), this->columns());
    181181  }
    182182
     
    184184  Matrix::row_iterator Matrix::begin_row(size_t i)
    185185  {
    186     return iterator(&(*this)(i,0), 1);
     186    return row_iterator(&(*this)(i,0), 1);
    187187  }
    188188
     
    190190  Matrix::const_row_iterator Matrix::begin_row(size_t i) const
    191191  {
    192     return const_iterator(&(*this)(i,0), 1);
     192    return const_row_iterator(&(*this)(i,0), 1);
    193193  }
    194194
Note: See TracChangeset for help on using the changeset viewer.