Am 01.08.2018 um 13:56 schrieb Allin Cottrell:
On Wed, 1 Aug 2018, Artur T. wrote:
> Dear all,
>
> I would like to store multiple 2-d matrices in an array which is part
> of a bundle. However, I've experienced the following issues and would
> like to know whether this intended or a bug:
>
> <hansl>
> # working example
> matrices M = null
> M += mnormal(10,1)
>
> # not properly working example
> bundle b = null
> matrices b.M = null # doesn't work
> b.M = M # works
> b.M += mnormal(10,1) # doesn't work
> matrix mn = mnormal(10,1)
> b.M += mn # doesn't work
> </hansl>
Thanks for the report, Artur. I agree that the things that are not
working here ought to work, and I'll investigate. Meanwhile, one point
to note: although
matrices b.M = array(0)
works, and achieves the same effect. (But they should both work.)
Thanks for the
workaround, Allin and investigating the issue.
By the way, I also find the following weird which doesn't work:
<hansl>
open denmark.gdt -q
list L = LRM LRY
bundle b = null
b.L = L
b.L1 = b.L(-1) # results in "The symbol '(' is not valid in this
context"
</hansl>
Best,
Artur