Comparisons - Comparisons - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English

Element-wise comparisons (==, ~=, <, <=, >, >=) and isequal are supported, including against scalars. They return plain MATLAB logical arrays.

a = varray.int32([1, 2, 3, 4]);
b = varray.int32([1, 0, 3, 5]);

a == b       % [true, false, true, false]
a > 2        % [false, false, true, true]
isequal(a, b)