Ignore:
Timestamp:
Jan 8, 2009, 10:36:27 PM (13 years ago)
Author:
Peter
Message:

implementing swap function

File:
1 edited

Legend:

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

    r1589 r1706  
    99  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
    1010  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
     11  Copyright (C) 2009 Peter Johansson
    1112
    1213  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    114115   
    115116    /**
    116        \brief The istream constructor.
     117       \brief constructor.
    117118
    118119       Data is copied from \a other and weights are calculated using
     
    210211
    211212    /**
     213       \brief swap objects
     214
     215       Takes constant time. Invalidates iterators.
     216     */
     217    void swap(MatrixWeighted& other);
     218
     219    /**
    212220       \brief Resize Matrix
    213221
     
    258266     Takes constant time.
    259267
    260      \throw std::runtime_error if the two matrices disagree in size.
     268     \see MatrixWeighted::swap(MatrixWeighted&)
    261269  */
    262270  void swap(MatrixWeighted&, MatrixWeighted&);
Note: See TracChangeset for help on using the changeset viewer.