Am 05.11.2024 um 00:38 schrieb Sven Schreiber:
<hansl>
matrix m = {0.5}
eval typename(m) # matrix
b = _(hu=m)
eval typename(b.hu) # scalar
</hansl>
So the mere copy of the object changes its type here. (Also happens
outside of a bundle, but there you can force the type more easily.)
OK, so the only way I'm seeing to force and preserve the matrix type is
via a pre-created bundle and then a separate copy, and then even without
explict type declarations:
<hansl>
clear
bundle B
m = {0.5}
B.m2 = m
eval typename(B.m2) # matrix
</hansl>
thanks
sven