| ||||||
| ||||||
![]() | ||||||
Prototype | ||||||
template <class Vec> Vec::size_type max_abs_index(const Vec& x) ; | ||||||
![]() | ||||||
Description | ||||||
The location (index) of the element with the maximum absolute value. is the type of the absolute value of its value_type. | ||||||
![]() | ||||||
Definition | ||||||
mtl.h | ||||||
![]() | ||||||
Requirements on types | ||||||
![]() | ||||||
Preconditions | ||||||
| ||||||
![]() | ||||||
Complexity | ||||||
O(n) | ||||||
![]() | ||||||
Example | ||||||
In max_abs_index.cc:
| ||||||
![]() | ||||||
Notes | ||||||
![]() | ||||||
See also | ||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.