IT++ Logo

min_max.h File Reference


Detailed Description

Minimum and maximum functions on vectors and matrices.

Author:
Tony Ottosson, Johan Bergman and Adam Piatyszek
-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2007 (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.

#include <itpp/base/mat.h>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

template<class T>
itpp::max (const Vec< T > &v)
 Maximum value of vector.
template<class 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>
itpp::min (const Vec< T > &in)
 Minimum value of vector.
template<class 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.

SourceForge Logo

Generated on Sun Sep 14 18:52:36 2008 for IT++ by Doxygen 1.5.6