On Fri, 25 Nov 2016, Sven Schreiber wrote:
Hi,
there seems to be a problem with matrix indexing through vectors when the
indices have all the same single value:
<hansl>
matrix mm = zeros(10, 1)
eval mm[{3, 3, 3} , ] # gives 1x1
eval mm[{3, 3}, ] # gives 1x1
eval mm[{3, 3, 2}, ] # correct 3x1
eval mm[ones(20,1), ] # gives 1x1
</hansl>
Hmm, we had some code in place to treat a constant index vector as
just a single value. That must have somehow seemed a good idea at
the time, but now it's removed in git.
Allin