Matrix.GreaterThan Method

Definition

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

Overload List

GreaterThan<T>(Matrix<T>, T) Checks if the elements of one matrix are greater than a constant.
GreaterThan<T>(Matrix<T>, Matrix<T>) Checks if the elements of one matrix are greater than the corresponding elements of another matrix.
GreaterThan<T>(T, Matrix<T>) Checks if the elements of one matrix are greater than a constant.

GreaterThan<T>(Matrix<T>, T)

Checks if the elements of one matrix are greater than a constant.
C#
public static Matrix<bool> GreaterThan<T>(
	Matrix<T> left,
	T right
)

Parameters

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

Type Parameters

T

Return Value

Matrix<Boolean>
A boolean matrix whose elements are true if the corresponding element in left is greater than right, and false otherwise.

Exceptions

GreaterThan<T>(Matrix<T>, Matrix<T>)

Checks if the elements of one matrix are greater than the corresponding elements of another matrix.
C#
public static Matrix<bool> GreaterThan<T>(
	Matrix<T> left,
	Matrix<T> right
)

Parameters

left  Matrix<T>
The first matrix.
right  Matrix<T>
The second matrix.

Type Parameters

T

Return Value

Matrix<Boolean>
A boolean matrix whose elements are true if the corresponding element in left is greater than the corresponding element in right, and false otherwise.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same length.

GreaterThan<T>(T, Matrix<T>)

Checks if the elements of one matrix are greater than a constant.
C#
public static Matrix<bool> GreaterThan<T>(
	T left,
	Matrix<T> right
)

Parameters

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

Type Parameters

T

Return Value

Matrix<Boolean>
A boolean matrix whose elements are true if left is greater than the corresponding element in right, and false otherwise.

Exceptions

See Also