Minimum and maximum functions on vectors and matrices. More...
#include <itpp/base/mat.h>
Go to the source code of this file.
Namespaces | |
namespace | itpp |
\ | |
Functions | |
template<class T > | |
T | itpp::max (const Vec< T > &v) |
Maximum value of vector. | |
template<class T > | |
T | itpp::max (const Vec< T > &v, int &index) |
Maximum value of vector, also returns the index position of max value. | |
template<class T > | |
Vec< T > | itpp::max (const Mat< T > &m, int dim=1) |
template<class T > | |
Vec< T > | itpp::max (const Mat< T > &m, ivec &index, int dim=1) |
template<class T > | |
T | itpp::min (const Vec< T > &in) |
Minimum value of vector. | |
template<class T > | |
T | itpp::min (const Vec< T > &in, int &index) |
Minimum value of vector, also returns the index position of min value. | |
template<class T > | |
Vec< T > | itpp::min (const Mat< T > &m, int dim=1) |
template<class T > | |
Vec< T > | itpp::min (const Mat< T > &m, ivec &index, int dim=1) |
template<class T > | |
int | itpp::max_index (const Vec< T > &in) |
Return the postion of the maximum element in the vector. | |
template<class T > | |
void | itpp::max_index (const Mat< T > &m, int &row, int &col) |
Return the postion of the maximum element in the matrix. | |
template<class T > | |
int | itpp::min_index (const Vec< T > &in) |
Return the postion of the minimum element in the vector. | |
template<class T > | |
void | itpp::min_index (const Mat< T > &m, int &row, int &col) |
Return the postion of the minimum element in the matrix. |
Minimum and maximum functions on vectors and matrices.
-------------------------------------------------------------------------
IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions
Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-------------------------------------------------------------------------
Definition in file min_max.h.
Generated on Sat Feb 26 2011 16:06:35 for IT++ by Doxygen 1.7.3