Skip to contents

Project a matrix with given indices and store the result in the sparse mode.

Usage

projSparse(Y, obs_indices)

Arguments

Y

A matrix to be projected.

obs_indices

A matrix containing 1-based indices of the observed entries in the matrix Y. The first column represents row and the second column represents column.

Value

A dgCMatrix containing the projection result.