Managed Array Functions<T>.Max Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Max<TStorage>(Int32, TStorage, TStorage, TStorage) | |
Max( | Computes the maximum of all elements in the span. |
Max( | Computes the maximum of all elements in the span. |
Max( | Computes the maximum of a number and each element of a span. |
Max( | Computes the maximum of corresponding elements of two spans. |
Max( | Computes the maximum of a number and each element of a span. |
Max( | Computes the maximum of corresponding elements of two spans. |
Max<TStorage>(Int32, TStorage) | Computes the maximum of all elements in the array. |
Max<TStorage>(Int32, TStorage, TStorage, TStorage) | Computes the maximum of each element of an array and the corresponding element in another array. |
Max(Int32, ReadOnlySpan<T>, Int32)
Computes the maximum of all elements in the span.
public override T Max(
int length,
ReadOnlySpan<T> operand,
int stride
)
Parameters
- length Int32
- The number of elements in the span.
- operand ReadOnlySpan<T>
- The span that holds the operands.
- stride Int32
- The distance between elements in operand.
Return Value
TThe maximum of the elements of operand.
Max(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Computes the maximum of corresponding elements of two spans.
public override void Max(
int length,
ReadOnlySpan<T> first,
int firstStride,
ReadOnlySpan<T> second,
int secondStride,
Span<T> result,
int resultStride
)
Parameters
- length Int32
- The number of elements in the span.
- first ReadOnlySpan<T>
- The span that holds the first operands.
- firstStride Int32
- The distance between elements in first.
- second ReadOnlySpan<T>
- The span that holds the second operands.
- secondStride Int32
- The distance between elements in second.
- result Span<T>
- The span that holds the results.
- resultStride Int32
- The distance between elements in result.