min_max.h File Reference

Minimum and maximum functions on vectors and matrices. More...

`#include <itpp/base/mat.h>`

Go to the source code of this file.

## Namespaces

| itpp
| itpp namespace

## 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.

## Detailed Description

Minimum and maximum functions on vectors and matrices.

Author
  Tony Ottosson, Johan Bergman and Adam Piatyszek

Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)

This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.

IT++ 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 3 of the License, or (at your option) any later version.

IT++ 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 IT++. If not, see http://www.gnu.org/licenses/.

Definition in file min_max.h.

Generated on Mon Mar 23 2020 06:18:03 for IT++ by Doxygen 1.8.17