On Mon, 6 Feb 2017, Allin Cottrell wrote:
I'm about to merge the new "genr" code that properly
handles nesting of the
member-of relation. It has been tested to a fair extent already, but it will
be easier for me to complete the testing once this code is in the "master"
branch.
So, be warned that there may be some new bugs in git for a while, though
hopefully they'll be resolved quickly.
Having done some more testing, I now think the danger of new bugs is
no greater than normal for development work, so I'm going to put up
snapshots based on the new code.
Here's a sample of some things that will now work, most of which would
not have worked before:
<hansl>
matrices M = array(1)
M[1] = seq(1,3)
# array -> matrix -> element
eval M[1][2]
bundle b
b.mat = seq(1,3)
# bundle -> matrix -> submatrix
eval b.mat[2:3]
bundles B = defarray(b)
# array -> bundle -> matrix
eval B[1].mat
# array -> bundle -> matrix -> element
eval B[1].mat[3]
bundle c
c.B = B
# bundle -> array -> bundle -> matrix -> submatrix
eval c.B[1].mat[,-2]
bundle b
# set matrix
matrix b.mat = I(3)
eval b.mat
# replace whole matrix
b.mat = mnormal(4,4)
eval b.mat
# replace submatrix
b.mat[1,1] = 13
eval b.mat
# inflected assignment to submatrix
b.mat[1,1] += 13
eval b.mat
# inflected assignment to whole matrix
b.mat /= 2
eval b.mat
</hansl>
Allin