Ignore:
Timestamp:
Feb 10, 2008, 11:06:52 PM (14 years ago)
Author:
Peter
Message:

fixes #306 matrix iterators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/matrix.h

    r1028 r1064  
    99  Copyright (C) 2005, 2006 Jari Häkkinen, Markus Ringnér, Peter Johansson
    1010  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
     11  Copyright (C) 2008 Peter Johansson
    1112
    1213  This file is part of the yat library, http://trac.thep.lu.se/yat
     
    2829*/
    2930
     31#include "Exception.h"
     32#include "StrideIterator.h"
    3033#include "vector.h"
    3134#include "VectorConstView.h"
    3235#include "VectorView.h"
    33 #include "Exception.h"
    3436
    3537#include <gsl/gsl_matrix.h>
     
    7072  {
    7173  public:
     74    /**
     75     */
     76    typedef StrideIterator<double*> iterator;
     77
     78    /**
     79     */
     80    typedef StrideIterator<const double*> const_iterator;
    7281
    7382    /**
     
    149158
    150159    /**
     160     */
     161    iterator begin(void);
     162
     163    /**
     164     */
     165    const_iterator begin(void) const;
     166
     167    /**
     168     */
     169    iterator begin_column(size_t);
     170
     171    /**
     172     */
     173    const_iterator begin_column(size_t) const;
     174
     175    /**
     176     */
     177    iterator begin_row(size_t);
     178
     179    /**
     180     */
     181    const_iterator begin_row(size_t) const;
     182
     183    /**
    151184       \brief Make a copy of \a other.
    152185
     
    177210    */
    178211    void div(const matrix& b);
     212
     213    /**
     214     */
     215    iterator end(void);
     216
     217    /**
     218     */
     219    const_iterator end(void) const;
     220
     221    /**
     222     */
     223    iterator end_column(size_t);
     224
     225    /**
     226     */
     227    const_iterator end_column(size_t) const;
     228
     229    /**
     230     */
     231    iterator end_row(size_t);
     232
     233    /**
     234     */
     235    const_iterator end_row(size_t) const;
    179236
    180237    /**
Note: See TracChangeset for help on using the changeset viewer.