Closed shiredude95 closed 7 years ago
Y[1,R[1,:]] was indexing over the columns given by R[1,:] which returns binary values and thereby iterating over indexes 0 and 1 of Y[1].
Good catch, thanks for noticing.
Y[1,R[1,:]] was indexing over the columns given by R[1,:] which returns binary values and thereby iterating over indexes 0 and 1 of Y[1].