Managed Array Functions<T>.Max Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Max( | Computes the maximum of all elements in the array. |
Max( | 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.
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
TThe 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.
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.