Vector.MinInto Method

Definition

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

Overload List

MinInto<T>(Vector<T>, T, Vector<T>) Returns a vector whose elements are the minimum of the components of a vector and a real number.
MinInto<T>(Vector<T>, Vector<T>, Vector<T>) Returns a vector whose elements are the minimums of the components of two vectors.

MinInto<T>(Vector<T>, T, Vector<T>)

Returns a vector whose elements are the minimum of the components of a vector and a real number.
C#
public static Vector<T> MinInto<T>(
	this Vector<T> vector,
	T value,
	Vector<T> result
)

Parameters

vector  Vector<T>
A Vector<T>.
value  T
A real number.
result  Vector<T>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

Vector<T>
A vector whose elements are the largest 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).

Exceptions

ArgumentNullExceptionvector is null.

MinInto<T>(Vector<T>, Vector<T>, Vector<T>)

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

Parameters

left  Vector<T>
A Vector<T>.
right  Vector<T>
A Vector<T>.
result  Vector<T>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

Vector<T>
A vector whose elements are the largest 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).

Exceptions

ArgumentNullExceptionleft is null.

-or-

right is null.

DimensionMismatchExceptionThe length of left is not equal to the length of right.

See Also