Rosetta 3.3
Namespaces | Functions
src/utility/minmax.hh File Reference
#include <vector>
#include <utility/vector1.hh>

Namespaces

namespace  utility
 

unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.


Functions

template<typename T >
int utility::argmin (const std::vector< T > &iterable)
 Returns the argument whose value is minimal according to operator<. Adheres to STL numbering (0-indexed).
template<typename T >
int utility::argmin (const utility::vector1< T > &iterable)
 Returns the argument whose value is minimal according to operator<. Adheres to Rosetta numbering (1-indexed).
template<typename T >
int utility::argmax (const std::vector< T > &iterable)
 Returns the argument whose value is maximal according to operator>. Adheres to STL numbering (0-indexed).
template<typename T >
int utility::argmax (const utility::vector1< T > &iterable)
 Returns the argument whose value is maximal according to operator>. Adheres to Rosetta numbering (1-indexed).

Detailed Description

Author:
Christopher Miles (cmiles@uw.edu)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines