I find it quite limiting that the Teddy language does not allow matrix definitions but is limited to lists.
I’ve been trying to do a simple workaround by defining several variables and formatting it as a matrix:
! col0 col1 col2 col3
let#LC1 1.1, 1.2, 1.3, 1.4
let#LC17 2.1, 2.2, 2.3, 2.4
let#LC23 3.1, 3.2, 3.3, 3.4
let#LCs 1,17,23
etc…
When I call this inside eg. Sofiload I’d do like this:
loop#i LC1
COMB 801+#i EXTR stan TYPE DESI
LC 1 TYPE g #LC1(#i)
LC 17 TYPE g #LC17(#i)
LC 23 TYPE g #LC23(#i)
SUM 801+#i LC 801+#i TITL 'Comb #i'
endloop
Instead, I would like to call it through strings like this:
loop#i LC1
loop#j LCs
COMB 801+#i EXTR stan TYPE DESI
LC #LCs(#j) TYPE g '#LC'#LCs(#j)(#i) ! for #i and #j = 0: '#LC' --> #LC, #LCs(0) --> 1 => #LC1(0) --> 1.1
SUM 801+#i LC 801+#i TITL 'Comb #i'
endloop
endloop
Is this in anyway possible, or are anyone aware of a different solution?
Kind regards
Martin