ManagedArrayFunctions<T>.Max Method

Definition

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

Overload List

Max(Int32, ArraySlice<T>) Computes the maximum of all elements in the array.
Max(Int32, ArraySlice<T>, T, ArraySlice<T>) Computes the maximum of a number and each element of an array.

Max(Int32, ArraySlice<T>)

Computes the maximum of all elements in the array.
C#
public virtual T Max(
	int length,
	ArraySlice<T> operand
)

Parameters

length  Int32
The number of elements in the array.
operand  ArraySlice<T>
The array that holds the operands.

Return Value

T
The maximum of the elements of operand.

Implements

IArrayFunctions<T, TShape, TArray>.Max(TShape, TArray)

Max(Int32, ArraySlice<T>, T, ArraySlice<T>)

Computes the maximum of a number and each element of an array.
C#
public virtual void Max(
	int length,
	ArraySlice<T> operand,
	T value,
	ArraySlice<T> result
)

Parameters

length  Int32
The number of elements in the array.
operand  ArraySlice<T>
The array that holds the operands.
value  T
The number to compare to.
result  ArraySlice<T>
The array that holds the results.

Implements

IArrayFunctions<T, TShape, TArray>.Max(TShape, TArray, T, TArray)

See Also