IArrayFunctions<T, TShape, TArray>.Max Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Max(TShape, TArray) Computes the maximum of all elements in the array.
Max(TShape, TArray, T, TArray) Computes the maximum of a number and each element of an array.

Max(TShape, TArray)

Computes the maximum of all elements in the array.
C#
T Max(
	TShape shape,
	TArray operand
)

Parameters

shape  TShape
The number of elements in the array.
operand  TArray
The array that holds the operands.

Return Value

T
The maximum of the elements of operand.

Max(TShape, TArray, T, TArray)

Computes the maximum of a number and each element of an array.
C#
void Max(
	TShape shape,
	TArray operand,
	T value,
	TArray result
)

Parameters

shape  TShape
The number of elements in the array.
operand  TArray
The array that holds the operands.
value  T
The number to compare to.
result  TArray
The array that holds the results.

See Also