Vector.MinNumber Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

MinNumber<T>(Vector<T>, T) Returns a vector whose elements are the minimum numbers of a vector and a scalar.
MinNumber<T>(Vector<T>, Vector<T>) Returns a vector whose elements are the minimum numbers of the components of two vectors.
MinNumber<T>(T, Vector<T>) Returns a vector whose elements are the minimum numbers of a scalar and a vector.

MinNumber<T>(Vector<T>, T)

Returns a vector whose elements are the minimum numbers of a vector and a scalar.
C#
public static Vector<T> MinNumber<T>(
	this Vector<T> vector,
	T value
)

Parameters

vector  Vector<T>
A Vector<T>.
value  T
A scalar value.

Type Parameters

T

Return Value

Vector<T>
A vector whose elements are the minimum numbers of the corresponding element of vector and value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

For vector elements, missingness is determined by IsMissing(Int32). For value, missingness is determined by IsMissing(T). When both operands are present, Min(T, T) is applied.

MinNumber<T>(Vector<T>, Vector<T>)

Returns a vector whose elements are the minimum numbers of the components of two vectors.
C#
public static Vector<T> MinNumber<T>(
	this Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
A Vector<T>.
right  Vector<T>
A Vector<T>.

Type Parameters

T

Return Value

Vector<T>
A vector whose elements are the minimum numbers of the corresponding elements of left and right.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Each vector classifies its own elements through IsMissing(Int32). When both operands are present, Min(T, T) is applied.

MinNumber<T>(T, Vector<T>)

Returns a vector whose elements are the minimum numbers of a scalar and a vector.
C#
public static Vector<T> MinNumber<T>(
	T value,
	Vector<T> vector
)

Parameters

value  T
A scalar value.
vector  Vector<T>
A Vector<T>.

Type Parameters

T

Return Value

Vector<T>
A vector whose elements are the minimum numbers of value and the corresponding element of vector.

Remarks

For vector elements, missingness is determined by IsMissing(Int32). For value, missingness is determined by IsMissing(T). When both operands are present, Min(T, T) is applied.

See Also