Comparison Operations - Comparison Operations - 2026.2 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-11-11
Version
2026.2 English

Comparisons (==, !=, <, <=, >, >=) are the only ufuncs supported natively. The right-hand side can be a scalar, a list/tuple, a NumPy array, or another varray. The result is always a NumPy bool array. Arithmetic and other math ufuncs are not supported. Refer to Arithmetic and Math Operations (Not supported). for more information.

a = va.array([1, 2, 3, 4], dtype=va.int32)
b = va.array([1, 0, 3, 5], dtype=va.int32)

a == b              # array([ True, False,  True, False])
a > 2               # array([False, False,  True,  True])
a >= [1, 1, 1, 1]   # array([ True,  True,  True,  True])