Dear all,
I've expected the following error using latest git on Ubuntu linux when
trying to update a matrix in a matrices object by referencing to itself
(updating itself). This works fine with a matrix object but not with a
matrix within a matrices object.
<hansl>
matrix m = mnormal(10,2)
matrices Mtmp = defarray(m[,1], m[,2]) # define temp. matrices
matrices M = array(nelem(Mtmp)) # matrices of interest
# update each matrix in matrices M
loop j=1..nelem(Mtmp) -q
M[j] ~= Mtmp[j] # grab last version of j-th matrix in ret
M[j] = M[j] # update j-th matrix in ret # results in ERROR
endloop
</hansl>
Best,
Artur