ILNumerics Ultimate VS

ILMathgt Method (BaseArrayInt32, BaseArrayInt32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Elementwise 'GreaterThan' comparison operator on two arrays.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetLogical gt(
	BaseArray<int> A,
	BaseArray<int> B
)

Parameters

A
Type: ILNumericsBaseArrayInt32
The first array.
B
Type: ILNumericsBaseArrayInt32
The second array.

Return Value

Type: RetLogical
Logical array with the size broadcasted from A and B.
Remarks

General notes on binary broadcasting operators: The operation is performed elementwise on corresponding elements of A and B. The sizes of both input arrays must be broadcastable and determine the size of the resulting array. Note, that broadcasting is performed, regardless of the current setting of ArrayStyle. However, the ArrayStyle configuration affects the operation in the following ways:

  • If A and B have different number of dimensions, the array with fewer dimensions is (virtually) padded with singleton dimensions, until the number of dimensions of both arrays match. In ILNumericsV4 the singleton dimensions are added to the end of dimensions. For numpy singletons are padded to the start, such that here, broadcasting aligns the last dimensions.
  • ILNumericsV4: Result values of integer element types T are clamped to the natural range of the interger type. I.e.: there will be no 'wrapping around' when exceeding the upper or lower limits of the natural value range of the integer type. Also, the operation may be performed by utilizing Int32 precision floating point arithmetics and subsequently casting the result to the desired integer value. For numpy no such precautions exist and the result of the binary operation is exactly the same as for operating the elements as System types (and as in numpy itself).

This function is parallelized for multiple cores. If possible, a suitable A or B is directly utilized in order to perform the operation inplace: instead of storing the results into new memory the input array and/or its storage is reused and returned.

[ILNumerics Computing Engine]

See Also

Reference

Other Resources