Changeset 1103 for trunk/yat/utility/matrix.cc
 Timestamp:
 Feb 18, 2008, 6:07:41 AM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/utility/matrix.cc
r1098 r1103 164 164 165 165 166 matrix:: iterator matrix::begin_column(size_t i)166 matrix::column_iterator matrix::begin_column(size_t i) 167 167 { 168 168 return iterator(&(*this)(0,i), this>columns()); … … 170 170 171 171 172 matrix::const_ iterator matrix::begin_column(size_t i) const172 matrix::const_column_iterator matrix::begin_column(size_t i) const 173 173 { 174 174 return const_iterator(&(*this)(0,i), this>columns()); … … 176 176 177 177 178 matrix:: iterator matrix::begin_row(size_t i)178 matrix::row_iterator matrix::begin_row(size_t i) 179 179 { 180 180 return iterator(&(*this)(i,0), 1); … … 182 182 183 183 184 matrix::const_ iterator matrix::begin_row(size_t i) const184 matrix::const_row_iterator matrix::begin_row(size_t i) const 185 185 { 186 186 return const_iterator(&(*this)(i,0), 1); … … 247 247 248 248 249 matrix:: iterator matrix::end_column(size_t i)250 { 251 return iterator(&(*this)(0,i)+rows()*columns(), this>columns());252 } 253 254 255 matrix::const_ iterator matrix::end_column(size_t i) const256 { 257 return const_ iterator(&(*this)(0,i)+rows()*columns(),this>columns());258 } 259 260 261 matrix:: iterator matrix::end_row(size_t i)262 { 263 return iterator(&(*this)(i,0)+columns(), 1);264 } 265 266 267 matrix::const_ iterator matrix::end_row(size_t i) const268 { 269 return const_ iterator(&(*this)(i,0)+columns(), 1);249 matrix::column_iterator matrix::end_column(size_t i) 250 { 251 return column_iterator(&(*this)(0,i)+rows()*columns(), this>columns()); 252 } 253 254 255 matrix::const_column_iterator matrix::end_column(size_t i) const 256 { 257 return const_column_iterator(&(*this)(0,i)+rows()*columns(),this>columns()); 258 } 259 260 261 matrix::row_iterator matrix::end_row(size_t i) 262 { 263 return row_iterator(&(*this)(i,0)+columns(), 1); 264 } 265 266 267 matrix::const_row_iterator matrix::end_row(size_t i) const 268 { 269 return const_row_iterator(&(*this)(i,0)+columns(), 1); 270 270 } 271 271
Note: See TracChangeset
for help on using the changeset viewer.