Vector.Max<T>(Vector<T>, Vector<T>) Method

Returns a vector whose elements are the maximums of the components of two vectors.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<T> Max<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 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