Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

maxIndex(), minIndex()


Does not inherit

Local Index

No Entries

Summary

Prototypes Header File(s)

template <class T>

   

int

maxIndex(const RWMathVec<T>&)

<rw/math/mathvec.h>

int

minIndex(const RWMathVec<T>&)

<rw/math/mathvec.h>

void

maxIndex(const RWGenMat<T>&,

int* maxi, int* maxj)

<rw/math/genmat.h>

void

minIndex(const RWGenMat<T>&,

int* maxi, int* maxj)

<rw/math/genmat.h>

RWIntVec

maxIndex(const RWMathArray<T>&)

<rw/math/mtharray.h>

RWIntVec

minIndex(const RWMathArray<T>&)

<rw/math/mtharray.h>

Description

Take a vector or array as an argument and return the index of the maximum or minimum element of the vector, respectively. If instead you want the maximum or minimum value of the vector, use function maxValue() or minValue().



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.