Ignore:
Timestamp:
Mar 19, 2007, 1:46:10 PM (16 years ago)
Author:
Peter
Message:

removed minmax functions and moved shuffle into vector.*

File:
1 edited

Legend:

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

    r811 r825  
    511511
    512512  /**
    513      \brief Get the minimum and maximim values of the vector.
    514 
    515      \return The minimum and maximum values of the vector,
    516      respectively.
    517   */
    518   std::pair<double,double> minmax(const vector&);
    519 
    520   /**
    521      \brief Locate the maximum and minumum element in the vector.
    522 
    523      \return The indecies to the element with the minimum and maximum
    524      values of the vector, respectively.
    525 
    526      \note Lower index has precedence.
    527   */
    528   std::pair<size_t,size_t> minmax_index(const vector&);
    529 
    530   /**
    531513     \brief Create a vector \a flag indicating NaN's in another vector
    532514     \a templat.
     
    541523     \return True if the \a templat vector contains at least one NaN.
    542524  */
    543   bool nan(const matrix& templat, matrix& flag);
     525  bool nan(const vector& templat, vector& flag);
    544526
    545527  /**
     
    552534
    553535  /**
     536     Randomly shuffles the elements in vector \a invec
     537  */
     538  void shuffle(vector& invec);
     539
     540  /**
    554541     Sort the elements in the vector.
    555542
Note: See TracChangeset for help on using the changeset viewer.