You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecInt Class > TMtxVecInt Methods > MaxMinIdx Method > TMtxVecInt.MaxMinIdx Method (out int, out int, out int, out int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecInt.MaxMinIdx Method (out int, out int, out int, out int, int, int)

Calculate minimum, maximum and their indices in one procedure call.

Syntax
C#
Visual Basic
public void MaxMinIdx(out int aMax, out int aMaxIdx, out int aMin, out int aMinIdx, int Index, int Len);
Parameters 
Description 
out int aMax 
Returns calling vector elements [Index..Index+Len-1] maximum value. 
out int aMaxIdx 
Returns calling vector maximum value index. 
out int aMin 
Returns calling vector elements [Index..Index+Len-1] minimum value. 
out int aMinIdx 
Returns calling vector minimum value index. 
int Index 
The starting index at which to start the search. 
int Len 
The number of elements to search starting from Index. 

An exception is raised if array borders are overrun/underrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!