Vector.LessThan Method

Definition

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

Overload List

LessThan<T>(Vector<T>, T) Checks if the elements of one vector are less than a constant.
LessThan<T>(Vector<T>, Vector<T>) Checks if the elements of one vector are less than the corresponding elements of another vector.
LessThan<T>(T, Vector<T>) Checks if the elements of one vector are less than a constant.

Vector.LessThan<T>(Vector<T>, T)

Checks if the elements of one vector are less than a constant.
C#
public static Vector<bool> LessThan<T>(
	Vector<T> left,
	T right
)

Parameters

left  Vector<T>
A vector.
right  T
A constant.

Type Parameters

T

Return Value

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

Exceptions

Vector.LessThan<T>(Vector<T>, Vector<T>)

Checks if the elements of one vector are less than the corresponding elements of another vector.
C#
public static Vector<bool> LessThan<T>(
	Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
The first vector.
right  Vector<T>
The second vector.

Type Parameters

T

Return Value

Vector<Boolean>
A boolean vector whose elements are true if the corresponding element in left is less 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.

Vector.LessThan<T>(T, Vector<T>)

Checks if the elements of one vector are less than a constant.
C#
public static Vector<bool> LessThan<T>(
	T left,
	Vector<T> right
)

Parameters

left  T
A constant.
right  Vector<T>
A vector.

Type Parameters

T

Return Value

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

Exceptions

See Also