Changeset 257 for trunk/src/vector.h


Ignore:
Timestamp:
Mar 4, 2005, 1:53:34 AM (18 years ago)
Author:
Jari Häkkinen
Message:

Added vector views and made vector member functions to be non-member functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/vector.h

    r227 r257  
    6868
    6969    ///
     70    /// The vector view constructor.
     71    ///
     72    /// Create a view of vector \a v, with starting index \a offset,
     73    /// size \a n, and an optional \a stride.
     74    ///
     75    /// A vector view can be used as any vector with the difference
     76    /// that changes made to the view will also change the object that
     77    /// is viewed. Also, using the copy constructor will create a new
     78    /// vector object that is a copy of whatever is viewed. If a copy
     79    /// of the view is needed the you should use this consturctor to
     80    /// get one.
     81    ///
     82    /// @note If the object viewed by the view goes out of scope or is
     83    /// deleted, the view becomes invalid.
     84    ///
     85    vector(vector& v, size_t offset, size_t n, size_t stride=1);
     86
     87    ///
    7088    /// Constructor that imports a GSL vector. The GSL object is owned
    7189    /// by the created object.
     
    178196    // Jari, doxygen group as Finding maximum and minimum elements
    179197    std::pair<size_t,size_t> vector::minmax_index(void) const;
    180 
    181     ///This function returns the indices of the minimum and maximum
    182     ///values in the sub-vector (defined by \a subset), storing them
    183     ///in imin and imax. When there are several equal minimum or
    184     ///maximum elements then the lowest indices are returned. The
    185     ///returned index is the index from the complete vector (not the
    186     ///sub-vector)
    187     ///
    188     /// @return Index corresponding to the smallest and largest value.
    189     ///
    190     std::pair<size_t,size_t>
    191     vector::TEMP_minmax_index(const std::vector<size_t>& subset ) const;
    192198
    193199    ///
Note: See TracChangeset for help on using the changeset viewer.