form: Formula specification (a right-hand sided formula, a numeric/character vector or a list of vectors).
dots: dot-arguments to be turned into a list
X: A matrix.
byrow: Should the split be by row or by column.
v: A vector.
setlist: A list of atomic vectors
item: An atomic vector
Details
which.arr.ind: Returns matrix n x 2 matrix with indices of non-zero entries in matrix X. Notice which_matrix_index__ is cpp implementation.
colwiseProd: multiplies a vector v and a matrix X columnwise (as opposed to rowwise which is achieved by v * X). Hence colwiseProd does the same as t(v * t(X)) - but it does so faster for numeric values.
lapplyV2I: same as but much faster than lapply(setlist, function(elt) match(elt, item))
lapplyI2V: same as but faster than lapply(setlist, function(elt) item[elt])