VirtualMatrix.Max(Array) Method

Top 

Description

Returns the maximum value in the matrix and stores its position in the passed 'indices' argument. The first element of 'indices' will contain the row index of the maximum value, and the second element will contain the column index of the maximum value.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

VirtualMatrix.Max(

Array indices)

 

 

Arguments

indices


Description:

The indices of the maximum value will be stored here. If there are multiple maximum entries, the first entry found via a columnwise search will be returned.

 

 

 

Return Value

Type:

number

 

 

Returns the maximum of all matrix elements.

 

Syntax

myVariable1 = [1,2; 3,4].Max(myArray1);

 

 

See also

VirtualMatrix Object

VirtualMatrix.Max