Vector.GreaterThanInto Method

Definition

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

Overload List

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

GreaterThanInto<T>(T, Vector<T>, Vector<Boolean>)

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

Parameters

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

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullException

right is null.

GreaterThanInto<T>(Vector<T>, T, Vector<Boolean>)

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

Parameters

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

Type Parameters

T

Return Value

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

Exceptions

GreaterThanInto<T>(Vector<T>, Vector<T>, Vector<Boolean>)

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

Parameters

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

Type Parameters

T

Return Value

Vector<Boolean>
A boolean vector 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