You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > Max Method > VectorInt.Max Method (out int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.Max Method (out int)

Calculate the maximum value of all calling object elements.

Syntax
C#
Visual Basic
public int Max(out int aIndex);
Parameters 
Description 
out int aIndex 
Stores maximum value index. 

the maximum of all calling vector integer elements in-place.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVecInt a; int ind; MtxVecInt.CreateIt(out a); try { a.SetIt(new int[] {1,2,3,4}); int max = a.Max(out ind); //max=3, ind = 3 } finally { MtxVecInt.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!