max

Return maximum element of complex vector

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This function returns the largest element of the Complex input vector, defined by the Complex absolute.

Syntax

(result, index) = max(v)

Inputs (1)

v

Type: Complex[:]

Description: Vector

Outputs (2)

result

Type: Complex

Description: Element of v with largest absolute value

index

Type: Integer

Description: v[index] has the largest absolute value