varray.array - varray.array - 2026.2 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-11-11
Version
2026.2 English
va.array(in_data, dtype=None, axis=None)
Parameter Description
in_data Scalar, list, tuple, or np.ndarray
dtype varray class or string. Required for list/tuple input.
axis varray.axis_config to attach AXI4-Stream sideband signals.

Properties: shape, ndim, size, dtype, bytes, plus axis_config and has_axis() when axis is set.

Methods:

Method Returns Notes
reshape(*shape) new array Non-mutating, matches np.ndarray.reshape.
astype(dtype) new array Reject complex ↔ non-complex.
view(dtype) new array Reinterpret bytes. No copy.
set_axis(config) None Attach, replace, or remove an axis config.
hex() str or list of str Hexadecimal representation of the stored integer (fi/cfi only). Scalar → str, else a list of strings.
bin() str or list of str Unsigned binary representation of the stored integer (fi/cfi only).