Skip to content
Prev 306167 / 398506 Next

Confused by code?

I've just reread my answer and it's not very clear. Not at all. Inline.
Em 24-09-2012 18:34, Rui Barradas escreveu:
Yes, it is absolutely correct. As is, the matrix mI is coerced to vector 
first and then, since it only has values 0 and 1 the element mPv[1] will 
be repeatedly filled with thesame value of mP[1].

The rest of my answer is right, though. But 'it', the very first word in 
my post after this comment, refers to what? To the condition that 
creates the index matrix ml but this is not at all as clear as it should.
Use this suggestion. It can't go wrong.

Rui Barradas