Index vector that, for each column in X, indicates the index of the first copy of that column

index_first_copy(X)

Arguments

X

Sparse matrix containing columns of indicator functions.