On Wed, 1 Aug 2018, Artur T. wrote:
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.
These points are now fixed in git.
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>
That's not so weird. Both series and lists can be put into bundles
only for transport purposes (objects of both sorts are actually stored
in the bundle as matrices). You have to pull these things out (in the
context of a suitable dataset) to work with them qua series or lists.
Allin