HyperMath

AbsMax

AbsMax

Previous topic Next topic No expanding text in this topic  

AbsMax

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The absolute maximum of the arguments.

Syntax

a, i = AbsMax(m)

Argument

Name

Description

 

m

A vector or a matrix.

Output

Name

Description

 

a

For a vector, it is the maximum of the absolute values of the entries.  For a matrix, the maximum (in absolute sense) of each column is returned collated in a row vector.

 

i

Index to the entries and of same size as a.  For a matrix, it is the index of the rows in each column.

Example

Find the maximum of elements in a matrix in absolute sense:

 

Syntax

 

M, I = AbsMax([1,2;3,-4])

 

Result

 

M = 3 4

I = 2 2

See Also:

Abs

AbsMin

Max

Min