Matrix.LessThanInto Method

Definition

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

Overload List

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

LessThanInto<T>(T, Matrix<T>, Matrix<Boolean>)

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

Parameters

left  T
A constant.
right  Matrix<T>
A matrix.
result  Matrix<Boolean>
The matrix that is to hold the result. May be null.

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullException

right is null.

LessThanInto<T>(Matrix<T>, T, Matrix<Boolean>)

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

Parameters

left  Matrix<T>
A matrix.
right  T
A constant.
result  Matrix<Boolean>
The matrix that is to hold the result. May be null.

Type Parameters

T

Return Value

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

Exceptions

LessThanInto<T>(Matrix<T>, Matrix<T>, Matrix<Boolean>)

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

Parameters

left  Matrix<T>
The first matrix.
right  Matrix<T>
The second matrix.
result  Matrix<Boolean>
The matrix that is to hold the result. May be null.

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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left and right do not have the same length.

See Also