On Fri, 30 May 2008, Stefano Balietti wrote:
The operation of selection of submatrixes causes a seg-fault if
performed within a loop.
Not quite. The problem exists, but is more subtle than that. For example,
if you substitute
loop for i=0..3
aa = getData( a, i)
aa
end loop
with
loop for i=0..3
aa = getData( a, i)
print aa
end loop
or with
loop for i=0..3
aa = getData( a, $i)
aa
end loop
your script works alright. I have no time to work on this today, but
clearly something funny's going on here. Thanks for spotting this.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti