Expand description
MATLAB-compatible setfield builtin with struct array and object support.
Mirrors MATLAB’s setfield semantics, including nested field creation, struct
array indexing via cell arguments, and property assignment on MATLAB-style
objects. The builtin performs all updates on host data; GPU-resident values are
gathered automatically before mutation. Updated tensors remain on the host.