ArrayFunctions<T>.Min Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Min(Int32, ReadOnlySpanSlice<T>) Computes the minimum of all elements in the span.
Min(Int32, ReadOnlySpan<T>, Int32) Computes the minimum of all elements in the span.
Min(Int32, ReadOnlySpanSlice<T>, T, SpanSlice<T>) Computes the minimum of a number and each element of a span.
Min(Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>, SpanSlice<T>) Computes the minimum of corresponding elements of two spans.
Min(Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32) Computes the minimum of a number and each element of a span.
Min(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32) Computes the minimum of corresponding elements of two spans.
Min<TStorage>(Int32, TStorage) Computes the minimum of all elements in the array.
Min<TStorage>(Int32, TStorage, TStorage, TStorage) Computes the minimum of each element of an array and the corresponding element in another array.
Min<TStorage>(Int32, TStorage, T, TStorage) Computes the minimum of a number and each element of an array.
Obsolete.

Min(Int32, ReadOnlySpanSlice<T>)

Computes the minimum of all elements in the span.
C#
public T Min(
	int length,
	ReadOnlySpanSlice<T> operand
)

Parameters

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

Return Value

T
The minimum of the elements of operand.

Min<TStorage>(Int32, TStorage)

Computes the minimum of all elements in the array.
C#
public T Min<TStorage>(
	int length,
	TStorage operand
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
operand  TStorage
The array that holds the operands.

Type Parameters

TStorage

Return Value

T
The minimum of the elements of operand.

Min(Int32, ReadOnlySpan<T>, Int32)

Computes the minimum of all elements in the span.
C#
public abstract T Min(
	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

T
The minimum of the elements of operand.

Min(Int32, ReadOnlySpanSlice<T>, T, SpanSlice<T>)

Computes the minimum of a number and each element of a span.
C#
public void Min(
	int length,
	ReadOnlySpanSlice<T> operand,
	T value,
	SpanSlice<T> result
)

Parameters

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

Min(Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>, SpanSlice<T>)

Computes the minimum of corresponding elements of two spans.
C#
public void Min(
	int length,
	ReadOnlySpanSlice<T> first,
	ReadOnlySpanSlice<T> second,
	SpanSlice<T> result
)

Parameters

length  Int32
The number of elements in the span.
first  ReadOnlySpanSlice<T>
The span that holds the first operands.
second  ReadOnlySpanSlice<T>
The span that holds the second operands.
result  SpanSlice<T>
The span that holds the results.

Min<TStorage>(Int32, TStorage, TStorage, TStorage)

Computes the minimum of each element of an array and the corresponding element in another array.
C#
public void Min<TStorage>(
	int length,
	TStorage first,
	TStorage second,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
first  TStorage
The array that holds the first operands.
second  TStorage
The array that holds the second operands.
result  TStorage
The array that holds the results.

Type Parameters

TStorage

Min<TStorage>(Int32, TStorage, T, TStorage)

Note: This API is now obsolete.
Computes the minimum of a number and each element of an array.
C#
[ObsoleteAttribute]
public void Min<TStorage>(
	int length,
	TStorage operand,
	T value,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

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

Type Parameters

TStorage

Min(Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)

Computes the minimum of a number and each element of a span.
C#
public void Min(
	int length,
	ReadOnlySpan<T> operand,
	int stride,
	T value,
	Span<T> result,
	int resultStride
)

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.
value  T
The number to compare to.
result  Span<T>
The span that holds the results.
resultStride  Int32
The distance between elements in result.

Min(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)

Computes the minimum of corresponding elements of two spans.
C#
public abstract void Min(
	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.

See Also