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

Returns a matrix 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 Matrix<T> Max<T>(
	this Matrix<T> left,
	Matrix<T> right
)

Parameters

left  Matrix<T>
A Matrix<T>.
right  Matrix<T>
A Matrix<T>.

Type Parameters

T

Return Value

Matrix<T>
A matrix 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 Matrix<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